[Dlang-internal] DIP1000 simple scopebuffer

Walter Bright via Dlang-internal dlang-internal at puremagic.com
Mon Jan 16 15:01:18 PST 2017


On 1/16/2017 2:29 AM, Nordlöw wrote:
> On Monday, 24 October 2016 at 21:02:05 UTC, Walter Bright wrote:
>>     ref int opIndex(size_t i) return
>
> How does this differ from an opIndex() qualified as `return scope`?

Scope refers to the value, ref refers to the address of the container of the value.


More information about the Dlang-internal mailing list