News for hackers. Stuff that matters.
Re:One-pass Compiler by benibela on Saturday May 23, 2020 @07:06PM (#23287417)
>Older versions of C had the restriction that variables could only be declared at the start of a block.

Pascal also has that restriction

Although Delphi does not have it anymore. But FreePascal still has it, even in Delphi compatible mode. The FreePascal developers have also said, they will keep that restriction to improve readability. The code could not be read anymore if variables were placed willy-nilly everywhere

Re:One-pass Compiler by renox on Sunday May 24, 2020 @05:21PM (#23294938)
I’ve heard the readability justification for C restriction, but it doesn’t make sense: this prevent ´constification’ of variables (make the variable contains only one value)..
Re:One-pass Compiler by jasonlhy on Sunday May 24, 2020 @03:05AM (#23289739)
I wonder if Delphi still a one pass compiler?