News for hackers. Stuff that matters.
Re:Pascal for Small Machines by DerekL on Tuesday December 12, 2023 @12:31PM (#38615390)
You can do that in modern C++, except that you have to create a lambda and assign it to a variable.
Re:Pascal for Small Machines by mrlonglong on Tuesday December 12, 2023 @06:42PM (#38620448)
That's just syntactic sugar, but yes that works and I had forgotten about lambdas.