C for Scientific Programming
Michael Meissner
meissner at xyzzy.UUCP
Tue Apr 26 08:48:00 AEST 1988
In article <7672 at ncoast.UUCP> btb at ncoast.UUCP (Brad Banko) writes:
| as for dynamic array dimensioning, i think that any experienced C programmer
| would immediately respond that NO other major language (Fortran, Pascal,
| Basic) allows the kinds of dynamic memory allocation that has been
| available in yesterday's C all along... in malloc() and its relatives.
Ughhh, C, Fortran, Pascal, and Basic are not the only "major" languages,
and other languages support better dynamic memory allocation schemes.
For example, in PL/I and Algol, you can declare automatic arrays whose
size is based on an expression, and when the block is entered, the
compiler will dynamically allocate space for the array on stack. When
the routine exits, the space automatically goes away. In APL (and
probably LISP), you can change the size of array bounds dynamically.
Followups to comp.lang.misc!.
--
Michael Meissner, Data General. Uucp: ...!mcnc!rti!xyzzy!meissner
Arpa/Csnet: meissner at dg-rtp.DG.COM
More information about the Comp.lang.c
mailing list