DIP69 - Implement scope for escape proof references

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 10 17:39:04 PST 2014


On Thursday, 11 December 2014 at 00:48:32 UTC, bearophile wrote:
> deadalnix:
>
>> That should cover most bases, and we can still extends later 
>> if this is too limited (I suspect it is ok for most cases).
>
> What syntax do you suggest to use if you want to extend it that 
> way later?
>
> Bye,
> bearophile

scope[symbol_name] would get the same lifetime as symbol_name for
instance. This is only a proposal, I'm not convinced that this is
strictly necessary, and, as long as we know we can add it if
needed, we are good.


More information about the Digitalmars-d mailing list