Path: utzoo!attcan!uunet!ficc!peter
From: peter@ficc.uu.net (Peter da Silva)
Newsgroups: comp.lang.fortran
Subject: Re: Fortran versus C for numerical anal
Message-ID: <1530@ficc.uu.net>
Date: 18 Sep 88 22:55:31 GMT
References: <50500075@uxe.cso.uiuc.edu> <3708@lanl.gov>
Organization: SCADA
Lines: 27

In article <3708@lanl.gov>, jlg@lanl.gov (Jim Giles) writes:
> From article <50500075@uxe.cso.uiuc.edu>, by mcdonald@uxe.cso.uiuc.edu:
> >> 	(*twodarray)[9][5] = 'c';
> > [... long example showing code generated ...]

> > Sure looks like array indexing calculations to me. [...]

> Still doesn't look like array indexing to me.

char (*twodarray)[10];

	twodarray = malloc(10*sizeof(*twodarray));

	...

	twodarray[9][5] = 'c';

Exactly the same example, with one vector indeterminate. Now you not
only have two-d arrays, you have dynamically sizable ones... and it's
syntactically and semantically identical to using:

char twodarray[10][10];

Satisfied?
-- 
Peter da Silva  `-_-'  Ferranti International Controls Corporation.
"Have you hugged  U  your wolf today?"            peter@ficc.uu.net