Multiple dimensions in DIM implies that all elements in each dimension would 
exist, around 25000 in your example. Using dynamic arrays, even as part of a 
dimensioned array is much more flexible as unused elements may not need to 
exist. And UV allows seven dimensional dynamic arrays - more than enough for 
most users!!

Of course, indexing into a dimensioned array would be faster.

Your request is close to something we were asked for in QM, arrays of arrays. 
Although technically easy we have not done it as the user requesting it 
withdrew the request. The hardest part is how to fit it into the language 

Martin Phillips

On 24 May 2012, at 12:46, Charles Stevenson <stevenson.c...@gmail.com> wrote:

> So LARGE.ARRAY is 2-dimensional & SMALL.ARRAY is 1 dimensional.
> The real value of INMAT is telling the SIZE of (each) dimension.
> Yes, I'm deliberately being picky.  I've found it very frustrating to be 
> hard-limited to 1- or 2-dimnsional arrays.
> What would be so wrong to allow:
>      DIM BETTER.ARRAY( 23, 14, 10, 2, 3 )
> Seems like it would be an easy enough feature to add, completely backward 
> compatible.
> Why isn't dimension arbitrary?
> On 5/23/2012 3:01 PM, Wally Terhune wrote:
>> Extracted from the UniBasic Commands Reference for INMAT()
>> In the next example, the program segment dimensions two arrays and then 
>> prints the
>> dimensions using the PRINT statement and INMAT function:
>> This results in the following:
>> 23}14
>> 9
>> -----Original Message-----
>> From: Jeffrey Butera
>> ... is there a function to determine it's dimensions?...
> ..
> _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
U2-Users mailing list

Reply via email to