C subscripts

Alan Fargusson alan at drivax.UUCP
Tue Oct 30 05:12:59 AEST 1984


> @ Who else out there thinks that
> @        some_array_name[more][long][names]
> @ is actually a good way to do things?
> 
>     I do!  I prefer to think of multi-dimensional arrays as arrays of arrays,
> which the current syntax implies, rather than as different entities.  It
> should be easy enough to write a program to convert between notations, though.

I would like both, however I see problems with array[sub,sub]. Specificly
passing arrays a parameters would have to allow some way for the procedure
to know the size of the various dementions to compute the index of elements
of the array correctly. This is difficult in a losely typed language like C.
I think that pointers would have a similar problem.
-- 
---------------------
Alan Fargusson.

{ ihnp4, sftig, amdahl, ucscc, ucbvax!unisoft }!drivax!alan



More information about the Comp.lang.c mailing list