DIP69 - Implement scope for escape proof references
via Digitalmars-d
digitalmars-d at puremagic.com
Mon Dec 8 07:45:35 PST 2014
On Monday, 8 December 2014 at 15:12:51 UTC, Steven Schveighoffer
wrote:
> I think you should eliminate scope returns then. They are not
> useful. I can't think of a single reason why a newly allocated
> via GC or global reference return should have to be restricted
> to exist only within the statement. Both have infinite
> lifetimes.
It's for references to objects that are owned by the function (or
object of which the function is a method). These don't have
infinite lifetimes.
More information about the Digitalmars-d
mailing list