4 ms·
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 fi
by sizzzzlerz 9y ago
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.
- pjmlp 9y agoThat was only true in toy Pascal compilers. Any Pascal compiler for production code supported some kind of modules/units.
- detaro 9y agoyes, this changed around 30 years ago.
- psykotic 9y agoUCSD 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.
- howard941 9y agoOMFG this brings back memories, like the promise of a processor that executed p-code. Good times.
- Zablus 9y agoPrograms can be separated into thousands of source files (aka "units") for ages. Maybe your teacher didn't tell you about this to avoid confusion ;-)