3 ms·
The only difference I see is if you need recursive local functions, which is harder (but not impossible) to do with anonymous closures.
by junke 8y ago
The only difference I see is if you need recursive local functions, which is harder (but not impossible) to do with anonymous closures.
- WalterBright 8y agoRecursive nested functions in D just work - the hidden parameter to the enclosing frame forms what's called a "static link". A "dynamic link" would be the usual pointer to the previous stack frame (not the enclosing stack frame).