Eigenpoll : D wish list : Full lexical closures 

I'd like to see full lexical closures, such that writing:

delegate(int,int) main(int a,int b) {
return closure(int x,int y){return x*y + a*b;};
}

returns a delegate of a method with the signature and body from the closure expression of an object holding a and b inside itself with no accessor methods. Each closure expression would return a new closure delegate to a new closure object.

Sorry if I got some syntax wrong.

Report this item for cleanup