Hacker News new | ask | show | jobs
by sago 3130 days ago
How did you do lambdas and lexical scoping without 'functional values'?
2 comments

That's explained in 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.

Presumably by implementing only the simpler "downwards" funargs: the ability to pass functions into a function scope but never return them.