[Issue 12931] Make const, immutable, and inout illegal as funtion attributes on the left-hand side of a function
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jun 23 19:29:50 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12931
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Jonathan M Davis from comment #0)
> Can we _please_, _please_ make it illegal to put any function attribute
> which could also modify the return type on the left-hand side of the
> function?
I think it would be nice improvement.
> It would be nice to make it so that
>
> const Bar foo() {...}
>
> were then the same as
>
> const(Bar) foo() {...}
There was a discussion in issue 10150 about it.
--
More information about the Digitalmars-d-bugs
mailing list