DIP1000: Scoped Pointers (Discussion)

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 15 02:32:20 PDT 2016


On Sunday, 14 August 2016 at 20:02:35 UTC, Walter Bright wrote:
> auto r = range;

You said that if a value (range in this case) is returned by 
scope, its lifetime is restricted to its expression, hence it 
can't be assigned to a variable, because the variable outlives 
the expression.


More information about the Digitalmars-d mailing list