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
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
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
> 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:
>> DIM LARGE.ARRAY(23,14)
>> DIM SMALL.ARRAY(9)
>> PRINT INMAT(LARGE.ARRAY)
>> PRINT INMAT(SMALL.ARRAY)
>> This results in the following:
>> -----Original Message-----
>> From: Jeffrey Butera
>> ... is there a function to determine it's dimensions?...
> U2-Users mailing list
U2-Users mailing list