DIP69 - Implement scope for escape proof references
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Wed Dec 10 22:43:10 PST 2014
On Thursday, 11 December 2014 at 03:30:07 UTC, Walter Bright
wrote:
> If you want data to 'escape' from r.front, then it shouldn't be
> marked as scope. Definitely, using scope successfully will
> require some rethinking of how code is written.
Allowing or prohibiting escaping of r.front in that example
depends on definition of mapped range. There is nothing to
"rethink" about it - case is almost identical to const+inout.
More information about the Digitalmars-d
mailing list