Re:Why Pascal Is Not My Favorite Programming Language (1981)...
by unnouinceput on Monday February 03, 2020 @08:22AM
(#22223893)
None uses that "standard" when writing stuff in Pascal. Real world uses either Delphi or Lazarus+FreePascal. Both of them have Writeln and variadic functions
[ Parent
| on HN ]
Re:Why Pascal Is Not My Favorite Programming Language (1981)...
by e12e on Monday February 03, 2020 @08:32AM
(#22223963)
Note, I think the point wasn't that Pascal didn't have writeln, rather that you couldn't write (implement) writeln in Pascal (presumably due to missing variadic functions).
So having writeln isn't really the issue, the issue is that writeln is magic/a built-in.
Is free pascal self hosted?
Re:Why Pascal Is Not My Favorite Programming Language (1981)...
by Akira1364 on Tuesday February 04, 2020 @10:30AM
(#22236636)
You could write something along the lines of `writeln` using `array of const` with today's Free Pascal. It's still strictly better that it's actually implemented as a built-in for various reasons, though.
Also, yes, Free Pascal is entirely self-hosted from the bottom up, making use of inline assembly blocks in some places where it's necessary. It is to Pascal what GCC is to C and C++, basically (which is to say, it has no real dependencies on toolchains other than itself).
Re:Why Pascal Is Not My Favorite Programming Language (1981)...
by clouddrover on Monday February 03, 2020 @08:40AM
(#22224015)
> Is free pascal self hosted?
Yes.