> I know about the array-of-arrays factor all too well. (I tend to use the
> [x,x] notation when not paying attention). But as a declaration has to
> specify how many levels of indirection
> (pointer-to-pointer-to-pointer-to.....) we are dealing with,  a limit seemed
> possible nonetheless.

It's only a limit on the syntax.  There may be a limit on size and
dimensionality of single definitions (allocations) as well.

Declarations? In C?  C99 is getting way too pascalish for my taste ;-)

Options ... 
* Just declare it a pointer-to-whatever and use [][][] and have as many as you
want, unless you really require single hyper-rectangular storage allocations
and locality of reference. (Implication -- you have to allocate and free each
dimension of array the hard way)

* Use C++ and do your own memory management, once, just like in Perl objects.

If you have an 8-dimensional array, there is a very real possibility that you
* have a memory management problem waiting to bite you
* have a sparse array and can save storage with an alternative representation
* have repeating values in one or more dimensions that could be compressed 
* you access it in ways that are inefficient with standard arrays, 
* Fortran would vectorize your acesses (Gnu G99 supports F?)

Bill
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to