Top-3 for 2.066

w0rp devw0rp at gmail.com
Mon Feb 24 23:48:58 PST 2014


On Tuesday, 25 February 2014 at 05:01:30 UTC, Manu wrote:
> 3. ref doesn't accept rvalues. Can't declare ref locals 
> (pointers change
> semantics).

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).'


More information about the Digitalmars-d mailing list