DIP69 - Implement scope for escape proof references

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 15 17:00:35 PST 2014


On 12/15/2014 5:38 AM, deadalnix wrote:
> On Monday, 15 December 2014 at 11:32:11 UTC, Dicebot wrote:
>> For me "scopeness" is a property of "view", not object itself - this also
>> makes ownership method of actual data irrelevant. Only difference between GC
>> owned data and stack allocated one is that former can have scoped view
>> optionally but for the latter compiler must force it as the only available.
>
> Ha finally something start to make sense here.

Well, the DIP does defined scope in terms of a 'view' in just this manner.

I am obviously terrible at explaining things.


More information about the Digitalmars-d mailing list