nonzero lower bounds in arryas

Frank Adams franka at mmintl.UUCP
Wed Jun 4 03:46:43 AEST 1986


>>>By the way, this does raise a question in my mind about how the convention
>>>of 1, not 0, being the lower bound subscript for an array is gotten around
>>>efficiently in implementations of Fortran. [levy]
>
>>In the case of one-dimensional arrays, of course, it can be handled at
>>compile time. [barmar]
>
>Actually, in all cases it can be handled at compile time, [Chis Torek]

Not in the multidimensional case when one of the dimensions (other than the
last) is a variable.  However, every FORTRAN compiler I have worked with
does do this simplification when possible.

Frank Adams                           ihnp4!philabs!pwa-b!mmintl!franka
Multimate International    52 Oakland Ave North    E. Hartford, CT 06108



More information about the Comp.lang.c mailing list