3 ms·
I have no idea what Obj-C block extensions are. D's nested functions (like Pascal's) have two frame pointers - a dynamic frame pointer (like C has), pointing t
by WalterBright 7y ago
I have no idea what Obj-C block extensions are.
D's nested functions (like Pascal's) have two frame pointers - a dynamic frame pointer (like C has), pointing to the caller's stack frame, and a static frame pointer pointing to the enclosing function's stack frame.
This allows the nested function to access the enclosing function's variables.
It's a bit tricky to set up, but works a treat.