auto ref - again
Jonathan M Davis
jmdavisProg at gmx.com
Sat Jan 26 22:49:25 PST 2013
On Sunday, January 27, 2013 07:28:24 deadalnix wrote:
> Back on the point, quoting « Having ref accept rValues seems like
> a bad idea. ». D accepted it for ages, some language accept it by
> design (java for instance).
>
> Now can someone show me the code ?
D's ref has never accepted rvalues. Rather, struct literals were incorrectly
treated as lvalues. And Java has nothing like ref whatsoever. It has
references like D's references, which are managed pointers, but that's
completely different.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list