mixing pointers and arrays

Dave Martindale dmmartindale at watcgl.UUCP
Thu Aug 11 10:44:16 AEST 1983


Since C now allows structures to be passed by value, I think that it would
be an interesting change if the language started supporting the passing of
arrays by value as well.  Then the meanings of "array" and "&array[0]"
would always be different, and would correspond to the way structures
are handled.

Unfortunately, this would break the majority of already-existing C
programs, so no one is every likely to do it.  Still, an interesting
idea.  Comments?

Dave Martindale, {allegra,decvax!watmath}!watcgl!dmmartindale



More information about the Comp.lang.c mailing list