Parameter storage class 'in' transitive like 'const'?
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun May 3 01:19:28 PDT 2015
On Saturday, May 02, 2015 22:20:33 Ali Çehreli via Digitalmars-d-learn wrote:
> We know that 'in' is "equivalent to const scope":
>
> http://dlang.org/function.html#parameters
>
> So, the constness of 'in' is transitive as well, right?
Of course. in is identical to const scope. It doesn't introduce anything
new. It's basically just an alias.
And I really wish that folks would stop using it, since it implies scope,
and scope hasn't been properly implemented or even designed out yet...
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list