Thanks! I foolishly removed "uses crt" because it seemed obvious
My beef with Pascal generally is that it was designed as a teaching language & hence is uniquely strict in many respects and aborts the compile as soon as hits the first error.
Teaching language always sounds if it was meant for kindergarten-level education with a lot of colorful pics. (1968's Raspberry pi so to say)
However Pascal was meant to be used inside a math department's CS branch as a workhorse to formalize algorithms and at the same time describe an efficient implementation for an audience of students and scientists.
IOW it was not meant to teach beginners, but to teach and serve as a workhorse for hardcore CS students and Phds in an scientific environment. That is a target something most other languages can't even match.
Our S/W Co. switched to another language, similar in syntax to Pascal, but more programmer-friendly, but I can't remember the name.
Modula and Modula-2 are the direct (and very similar) successors of Pascal that unfortunately never got popular. In general they are better and were targeted at system level programming. (a reason why many embedded companies migrated to it). I don't know Modula that well, but I know the successor Modula-2 (M2) well.
The practical difference are small though, since the advancements were relative to the original Pascal description, and not to the Pascal implementations already in use, key concepts already had been backported to Pascal before the M2 standard was formalized. (e.g. the unit system comes from that branch, and one of the other improvements is a elegant solution for which Turbo Pascal got the untyped "pointer", but functionally the same)
And worse, the Turbo Pascal branch had the great timesaver that is called the "string" type, while Modula2 was more array of char based with static buffers. (a bit like C before GNU introduced the convention that all strings should be pointers to make them "unlimited").
Modula2 did fix dangling else, and set the base level a bit higher (the many different Pascals all had extensions, but with differences between them), and had a better defined standard library (though that specification already felt outdated in 1990, let alone now)
But Modula(-2) but never got really popular because Pascal had become a workhorse in CS departments, and the UCSD Pascal boom on micros made it even more popular.
Undeserved, since M2 was better, but aside from the block structure, the improvements were more in the matter of better formalization of the standard and features than earth shattering. (specially since the more revolutionary module system was largely backported into Pascal, though it took till 1990 till that was formalized, and by then nobody cared since Turbo Pascal dominated the market and set its own standard)