A Refcounted Array Type
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 23 18:05:59 PST 2015
On 2/23/2015 5:41 PM, weaselcat wrote:
> On Monday, 23 February 2015 at 22:15:54 UTC, Walter Bright wrote:
>> ref E opIndex(size_t i) return // here's the magic
>
> exactly what is this doing? I don't see this explained in DIP25 at all.
The 'this' is passed by reference. So the 'return' is really 'return ref this',
the rest is explained by DIP25.
More information about the Digitalmars-d
mailing list