Ha! I never noticed your sig...
Schildt
I take it neither one has experience in PL/1. Pascal was heavily influenced
by PL/1.
Only negatively, I think. Both PL/I and Pascal are heavily derivative
of algol, and influenced by typical (mainframe) environments of the
day, but in the remaining (few) areas of freedom Pascal goes about as
exactly opposite to PL/I as is possible.
In fact, I usually describe PL/1 to others as Pascal with C
pointers and COBOL-ish records for structures...
COBOLish records, yes. (IIRC even down to CORRESPONDING!)
And COBOLish decimal numbers (even to PIC) plus FORTRAN/C-ish plus
more binary/computational numbers and arrays. Even a bit of APL.
And strings more than anything else of its day, especially BIT.
C pointers, not really. (Original/then) PL/I (data) pointers are
untyped, more like BCPL (or B) and offsets/areas are unlike any other
HLL except a _little_ like C++ pointer-to-member. ENTRY and LABEL
variables are more than C function pointer or even C++ function
object. And CONDITION more than C++ exception, although in ways that
are now unpopular and I think rightly so. And every I/O feature good
or bad ever imagined by anybody up to its time. And tasking.
The syntax even makes some attempts at brevity, though not as much as
C, while Pascal goes toward verbosity though not as much as COBOL.
- David.Thompson1 at worldnet.att.net