https://herbsutter.com/2012/05/03/reader-qa-what-about-vc-an...
https://www.reddit.com/r/cpp/comments/4oruo1/windows_10_code...
Pascal was not bad at that role, and it would have been possible to develop all the code which was eventually written in C in Pascal too. At least in the dialects that weren’t made just for education.
I think this illustrates how the philosophy of Pascal differed from that of C.
(No tagged unions, though. Systems guys are allergic to 'em, apparently).
Apple also added object-oriented features, but I don't count those as addressing anything borken or awkward in the base language.
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).