4 ms·
How did you do lambdas and lexical scoping without 'functional values'?
by sago 9y ago
How did you do lambdas and lexical scoping without 'functional values'?
- theoh 9y agoPresumably by implementing only the simpler "downwards" funargs: the ability to pass functions into a function scope but never return them.
- DonaldFisk 9y agoThat's explained in https://en.wikipedia.org/wiki/Funarg_problem#Downwards_funarg_problem https://en.wikipedia.org/wiki/Funarg_problem#Downwards_funar... In addition to return address and dynamic link, you need to store a static link in each stack frame.