Re:Why I use Object Pascal
by sizzzzlerz on Tuesday October 17, 2017 @09:36AM
(#15490745)
Hopefully, it has changed but, when I was learning Pascal many years ago, an entire program had to be contained within a single file. No separate compilation files and no linker. For all but toy programs, this made for some very long files which, given the state of editors then, made maintenance a real problem.
[ Parent
| on HN ]
Programs can be separated into thousands of source files (aka "units") for ages. Maybe your teacher didn't tell you about this to avoid confusion ;-)
UCSD Pascal had separate compilation units (late 1970s). A lot of people from my generation got started with Turbo Pascal and it had units based on UCSD Pascal starting in TP 4.
OMFG this brings back memories, like the promise of a processor that executed p-code. Good times.
That was only true in toy Pascal compilers.
Any Pascal compiler for production code supported some kind of modules/units.