On 3/28/2023 3:12 AM, Marco van de Voort via fpc-pascal wrote:
On 28-3-2023 11:33, Karoly Balogh via fpc-pascal wrote:
Probably yes, but there might be an alternative, see below. But as
far as
I understand, Unit is a Turbo Pascal concept, so any Pascal programming
dialect that predates it, probably don't understand it.
True, and before units in Turbo Pascal(*) and Modules in Extended
Pascal, nothing was standardized about breaking up the source into
multiple parts.
Most dialects either adopted some form of C "extern" like handling,
and the more advanced ones some form of Modula2 derived modules,
either directly, or via the lengthy Extended Pascal standardization
process.
(*) Turbo Pascal was strictly not a standard, but influential enough
to set one.
Units was actually something that was taken over from UCSD Pascal, which
had them for more than a decade before Anders Hejlsberg introduced them
with Turbo Pascal 4.0. They were omitted from the earlier versions due
to space constraints on CP/M, then the CP/M versions were translated
more or less 1:1 from Z80 to 8086 code and they were added when Turbo
Pascal 4.0 was pretty much rewritten from scratch...
Ralf
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal