Forcing closures to come on the stack

Jonathan M Davis jmdavisProg at gmx.com
Mon Aug 8 17:13:22 PDT 2011


> > You could use the 'scope' keyword, no?
> 
> From what I've heard it's being deprecated/removed -- although I'd be
> glad to hear otherwise.

scope on function parameters is sticking around as are scoped statements. 
What's going around is scoped local variables which put a class on the stack. 
std.typecons.Scoped is replacing it. scoped delegates are sticking around 
though.

- Jonathan M Davis


More information about the Digitalmars-d mailing list