https://issues.dlang.org/show_bug.cgi?id=2753

--- Comment #19 from Nick Treleaven <[email protected]> ---
> int foo(int function() ref goo);  // ref parameter

Again, that is going to be confusing with the `return ref` attribute. (And it
looks weird having a parameter storage class not come first).

>> int goo(int ref function() foo);  // ref return in parameter

> Here, the 'ref' would be exactly the same as '*' for pointers and '[]' for
arrays in terms of how it is placed

It would be a simple fix to the problem, though it might make people think
`ref` is a type modifier.

--

Reply via email to