5 ms·
Yes, they each sorted them out. (I'd mention VMS Pascal, too.) But they sorted them out differently, so if you were, for example, writing Software Tools in Pasc
by kragen 7y ago
Yes, they each sorted them out. (I'd mention VMS Pascal, too.) But they sorted them out differently, so if you were, for example, writing Software Tools in Pascal, as Kernighan had, you couldn't use their solutions; they were incompatible from one system to the next. ISO Extended Pascal did not solve this problem even when it was published in 1991, ten years after this paper, because even today it's not universally supported; for example, FreePascal still doesn't support it.
In a few cases, like TeX and STiP, the solution was to write in standard Wirth and Jensen Pascal, despite the inconveniences. Most people instead resigned themselves to writing nonportable code.
By the way, I see that the comment window has closed, but I'm still interested in your thoughts on https://news.ycombinator.com/item?id=22083468 https://news.ycombinator.com/item?id=22083468 — it represented a fair bit of effort on my part, and it's disappointing that you haven't answered at all.
- pjmlp 7y agoYeah that is the other typical argument, where it gets "forgotten" that outside UNIX in 1981, C was equally non-portable with dialects of K&R C everywhere like Small-C, RatC and plenty of others, taking yet another 10+ years for a standard to come up and respective compilers to catch up with it.
- AnimalMuppet 7y agoSo? Does that make anything kragen said untrue? This is just whataboutism, only on technical rather than political topic. [Edit: On reflection, you're addressing a different topic. The question the rest of us are talking about is "was Pascal that bad?". And the answer is, "yes". You want to talk about something else - Pascal vs. C. But in C, you could at least do "#ifdef Compiler_A" to achieve "portability". Yeah, it's not very good portability, but you could get to one source file that would compile with different compilers. For Pascal, so far as I know, you couldn't do even that much.]
- pjmlp 7y agoAll Pascal dialects supported conditional compilation.
- AnimalMuppet 7y agoThey did? I don't remember that. What was the syntax? Or was it that all post-Jensen-&-Wirth dialects supported conditional compilation, and I don't remember it because I was stuck on Jensen & Wirth?
- clouddrover 7y agoYou keep talking about what Pascal was. That no longer matters. What matters is what Pascal is today. Both Free Pascal and Delphi support conditional compilation and have done for a long time: http://docwiki.embarcadero.com/RADStudio/Rio/en/Conditional_compilation_(Delphi) http://docwiki.embarcadero.com/RADStudio/Rio/en/Conditional_... https://wiki.freepascal.org/Conditional_compilation https://wiki.freepascal.org/Conditional_compilation
- AnimalMuppet 7y agopjmlp said "supported", no "support". He and I were talking about the past. We're allowed to do that - to have the subject be what we want, rather than what you think it should be. In fact, the article was about Pascal circa 1981, so I'm not sure why you think the discussion ought to be about present-day Pascal.
- clouddrover 7y agoBecause the criticisms from 1981 are no longer relevant and haven't been relevant for a long time. Turbo Pascal had conditional compilation since at least 1987.
- AnimalMuppet 7y agoThen just let the whole article pass as being irrelevant, and go comment somewhere else, where they're talking about current languages. The discussion we're having here isn't the one you want to have.