DIP69 - Implement scope for escape proof references

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 4 02:11:10 PST 2014


On Thu, 04 Dec 2014 10:04:07 +0000
eles via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Thursday, 4 December 2014 at 10:00:37 UTC, Walter Bright wrote:
> > On 12/4/2014 1:51 AM, eles wrote:
> >> On Thursday, 4 December 2014 at 09:25:11 UTC, Walter Bright 
> >> wrote:
> >>> http://wiki.dlang.org/DIP69
> 
> > Was afraid that would break too much code.
> 
> An annotation for functions could make all variables "scope"?
> 
> Similar to:
> 
> int foo(int x) @scopedvars {
>   //all declarations are implicit "scope"; use "escape" for the 
> others
> 
> }
please, don't steal this nice identifier! i love variables with name
"escape"! stolen "body" still hurts me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141204/21552ea2/attachment-0001.sig>


More information about the Digitalmars-d mailing list