I was surprised when I heard that Pascal didn't originally have units. If I recall correctly they were introduced in Turbo Pascal 4. Did other pascal version have units prior to that? How long before other Pascal's got units?
closed as not constructive by Thomas Owens♦, Chris, Walter, ChrisF♦ Jul 29 '11 at 12:41
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
|
The Pascal programming language didn't have any modularity construct. Early versions of Turbo Pascal didn't have them either. Turbo Pascal 3 consisted of about 40kB of code (including the editor); there wasn't any room for advanced language features. Units were introduced in Turbo Pascal 4.0. The concept was certainly not new (Modula-2, a successor of Pascal, had a similar primitive module system at the time, and so had other languages before), and the term “compilation unit” was also already in common use. |
|||
|
|
|
Units were included as part of UCSD Pascal ("p-System"), introduced in 1978, which predated Turbo Pascal by several years. Here is a reconstructed section of the original manual (excerpt below):
|
|||||
|