A Refcounted Array Type
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 24 07:51:42 PST 2015
On 2/23/15 6:05 PM, Walter Bright wrote:
> 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.
We should amend DIP25 to explain that "this" is handled like a
parameter. -- Andrei
More information about the Digitalmars-d
mailing list