On Tuesday, 25 February 2014 at 05:01:30 UTC, Manu wrote:
3. ref doesn't accept rvalues. Can't declare ref locals (pointers changesemantics).
It would be nice to see this problem solved in an acceptable way. I came across it again recently when writing source files generated from C++, and realised my best course of action at the moment is probably to write 'auto ref const(T)' in my generated code in place of 'ref const(T).'
