Clarification needed on Pointers/Arrays

Karl Heuer karl at haddock.ima.isc.com
Thu Mar 2 04:55:13 AEST 1989


In article <890 at acf3.NYU.EDU> sabbagh at acf3.UUCP () writes:
>	int a[10],b[10];
>	...
>	a = b;
>
>is easy enough to interpret as array copy, but it be a "high-level" construct
>that is not found in other semantic areas of C.

Not so.  C has had struct copy for the last decade; I understand that array
copy was not added at the same time only because they couldn't find a clean
way to fit it into the existing language.  The invention of prototypes did
provide a (relatively) clean path, but unfortunately X3J11 didn't take it.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list