On Variable References

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 21 00:22:43 PST 2015


Why doesn't D allow declarations such as

     int x;
     auto ref xr;

?

What is so fundamentally bad about this compared to foreach 
variables and function arguments passed by reference?

Will Walters latest commits regarding

http://wiki.dlang.org/DIP25

change this matter?


More information about the Digitalmars-d-learn mailing list