Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site drivax.UUCP Path: utzoo!linus!decvax!decwrl!amd!fortune!hpda!hplabs!amdahl!drivax!alan From: alan@drivax.UUCP (Alan Fargusson) Newsgroups: net.lang.c Subject: Re: C subscripts Message-ID: <48@drivax.UUCP> Date: Mon, 29-Oct-84 14:12:59 EST Article-I.D.: drivax.48 Posted: Mon Oct 29 14:12:59 1984 Date-Received: Fri, 2-Nov-84 04:12:45 EST References: <202@oliveb.UUCP> Organization: Digital Research, Monterey Lines: 18 > @ 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