On Sep 28, 2014, at 9:35 AM, Mouse <mouse at rodents-montreal.org> wrote:
Wasn't
Apollo Computer's Domain OS written in Pascal?
I feel reasonably sure it was not.
It may, however, have been written in a Pascal-plus-extensions
language.
This may sound like quibbling, but I don't think so. One of Pascal's
major defects for purposes like that[%] was its lack of support for
things like what C would call casting, or the very restricted I/O
available.
Restricted I/O: not true. Pascal does I/O exactly as C does, by library calls. Its I/O
is exactly as powerful as what the library supplies. If you hook it up to libc, it?s the
same as C, obviously.
In fact, a lot of programming languages use this approach; Fortran and Basic and a few
other 1960s era languages are probably the exception rather than the rule in having
dedicated I/O statements. C, C++, Algol 60, Algol 68, Pascal, Python 3 ? all do I/O by
functions. You can get any level of I/O sophistication you want without changing the
language at all.
Obviously the size of the common I/O libraries has changed over time, and in fact one
reason that was doable is that it could be done without changing any of the languages that
use it.
paul