DIP69 - Implement scope for escape proof references

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 8 15:21:19 PST 2014


On Monday, 8 December 2014 at 21:16:36 UTC, Walter Bright wrote:
> A 'scope ref' parameter may not be returned as a 'ref' or a 
> 'scope ref'.
>

It can safely be returned if you consider its lifetime as the
intersection of the lifetime of the function's parameter.


More information about the Digitalmars-d mailing list