DIP74: Reference Counted Class Objects

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 26 18:05:11 PST 2015


On Thursday, 26 February 2015 at 21:50:56 UTC, Andrei 
Alexandrescu wrote:
> http://wiki.dlang.org/DIP74 got to reviewable form. Please 
> destroy and discuss.
>
> Thanks,
>
> Andrei

P.S., am I too late to complain about the choice of 'return' in 
DIP25? :)

If someone who learned C(++) but had used D read this

ref int opIndex(size_t n) return { // mark this as a non-escape 
reference
         return _payload[n];
}

I'm not sure if they could make heads or tails of what the first 
return is supposed to be doing.


More information about the Digitalmars-d mailing list