Trying to understand DIP1000
Dukc via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 5 11:06:29 PDT 2017
On Friday, 5 May 2017 at 18:04:32 UTC, Dukc wrote:
> The compiler is too cunning to let you to leak test[x] out of a
> function by reference, or take an address of it. Nor you can
> assing it to another variable, because that means copy
> semantics.
And oh, the identity function won't fool the compiler either, it
infers return scope, -dip25 or no.
More information about the Digitalmars-d-learn
mailing list