News for hackers. Stuff that matters.
Re:GNU Pascal Compiler by Tozen on Thursday April 27, 2023 @07:53AM (#35726678)
Actually, the PascalABC dialect[1][2] supports using variables in that way too. However, I've seen arguments that allowing variable declarations anywhere tends to lead to sloppier coding and unnecessary errors, so Free Pascal/Lazarus has not followed that trend. It also appears that Delphi/Embarcadero may have went in that direction to synchronize their C++Builder and Delphi products, to make it easier to jump between them.

1. https://pascalabc.net/en/ (PascalABC) 2. https://github.com/pascalabcnet/pascalabcnet (PascalABC GitHub)

Re:GNU Pascal Compiler by signaru on Thursday April 27, 2023 @08:48AM (#35727224)
PascalABC seems to only target dot NET though.