DIP69 - Implement scope for escape proof references

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 16 02:24:55 PST 2014


On Tuesday, 16 December 2014 at 01:00:47 UTC, Walter Bright wrote:
> 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.

No, I actually think the concept of view in the proposal is a 
good one. However, the proposal itself is too limiting.


More information about the Digitalmars-d mailing list