This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: BPs & cleanups for ARRAY_SIZE
On Aug 23, 2000, Geoff Keating <geoffk@cygnus.com> wrote:
> You can access the bytes of an object with a char*, but you can't
> exceed the bounds of the object you're accessing.
But then, is the object I'm accessing the whole multi-dimensional
array or just one of its sub-arrays? And then, assuming it works for
char*, couldn't I use an int* to iterate over a multi-dimensional
array of ints? Why should the bounds apply to the inner array,
instead of the whole array. As long as I'm iterating within the same
multi-dimensional array object, it should be fine, shouldn't it?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me