4 ms·
Algol (1960s) had no garbage collection (that I know of), so any "closure-like" data captured by a function/procedure reference had to still be on the call stac
by Roboprog 10y ago
Algol (1960s) had no garbage collection (that I know of), so any "closure-like" data captured by a function/procedure reference had to still be on the call stack.
Otherwise, you certainly had first class functions, just not always with any external state captured.
https://en.wikipedia.org/wiki/Man_or_boy_test https://en.wikipedia.org/wiki/Man_or_boy_test
I suspect TurboPascal was in the "boy" camp, in that a reference to a function (or procedure) would not have any external state bound to it.
- qwertyuiop924 10y agoAh. I don't know all that much about ALGOL. Dijkstra said it was great, but I don't trust his opinion.