Y
Hacker News
new
|
ask
|
show
|
jobs
by
sago
3130 days ago
How did you do lambdas and lexical scoping without 'functional values'?
2 comments
DonaldFisk
3130 days ago
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.
link
theoh
3130 days ago
Presumably by implementing only the simpler "downwards" funargs: the ability to pass functions into a function scope but never return them.
link
In addition to return address and dynamic link, you need to store a static link in each stack frame.