DIP69 - Implement scope for escape proof references

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 4 14:48:17 PST 2014


On Thursday, 4 December 2014 at 14:58:47 UTC, Steven 
Schveighoffer wrote:
> "There can be at most one owner for any piece of data."
>
> This doesn't seem right. For GC data, the GC owns the data, 
> that is true. But for Ref-counted data, there is more than one 
> owner, and only when all the owners disown the data can it be 
> destroyed.
>

The RC mechanism is the owner. Ownership is loosly defined in 
this DIp so that it do not close any door for future language 
evolution.


More information about the Digitalmars-d mailing list