Opt-out closures
Sean Eskapp
eatingstaples at gmail.com
Sun Jan 23 07:10:28 PST 2011
== Quote from bearophile (bearophileHUGS at lycos.com)'s article
> Sean Eskapp:
> > I want to be able to access the enclosing scope, but NOT after the function has
> > exited; I should have the option of accessing the enclosing scope, but at the cost
> > of making my delegate not a closure.
> It seems a worth thing to ask for. A possible syntax (not currently supported):
> void foo() {
> scope void bar() {}
> }
> Bye,
> bearophile
That looks like one of the best options syntax-wise. Nice!
More information about the Digitalmars-d
mailing list