News for hackers. Stuff that matters.
Re:Unix: A History and a Memoir, by Brian Kernighan by kabdib on Wednesday October 30, 2019 @12:01PM (#21399143)
Apple's Pascal had function pointers, and I'm pretty sure you could still do callbacks to nested procedures with a little trickery.

Ahh, I was right (PDF file here): http://mirror.informatimago.com/next/developer.apple.com/tec...

These are not closures, they're still strictly nested and on the native stack, so the usual crashes happen if you execute a callback to something that has gone out of scope.

Remind me to tell you about "Fork Queues", a solution we had on the Newton for dealing with multiple entities that all wanted to have the main event loop (of which you could really only ever have one, but we cheated).

Re:Unix: A History and a Memoir, by Brian Kernighan by kragen on Thursday October 31, 2019 @09:13PM (#21415438)
Oooh, this sounds fantastic!