Full closures for D

Nathan Reed nathaniel.reed at gmail.com
Fri Nov 2 15:35:57 PDT 2007


Walter Bright wrote:
> D 2.007 brings full closures to D. I was tired of D being denigrated for 
> not having "real" closures.

Very cool.  I have to admit I didn't think this would make it into the 
language. :)

I'm curious about how they work.  I'd guess you dup the stack frame onto 
the heap when a function returns a delegate, and update the delegate's 
context pointer?

Thanks,
Nathan Reed



More information about the Digitalmars-d mailing list