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

--- Comment #20 from Stewart Gordon <[email protected]> ---
(In reply to Nick Treleaven from comment #19)
> > 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).

Is the distinction between "storage class" and "type modifier" syntactic or
semantic?  I'm not sure where to find the exact definitions of these terms. 
dlang.org implies both in different places for "storage class", and I can't
seem to find anything for "type modifier".

If syntactic, then how would 'ref' be a storage class under such a syntax? 
This would surely mean '*' and '[]' are already storage classes, so if that's a
problem then it's already a problem for these.

If semantic, I would need to understand the definitions better to comment
further.

--

Reply via email to