Christian Soeller wrote:
> 
> No, at least 18. One more piece of semantics that would be appreciated
> is optional omission of trailing dimensions in slices, e.g. for a 3-dim
> @a:
> 
>   @a[0:1] == @a[0:1;] == @a[0:1;;]
> 
>  Christian

this would be the * in my proposal made in mail w/ subject
"a syntax derived from..."


I see each dimensional array as a discrete data type as separate as
hashes and arrays are in '5

        $a["199 399 599"] = undef;  # initialize 3d @a to 
                                    # at least 48000000 slots

2d @a and 1d @a remain without any memory for them.
        scalar(@a);                 # zero, 1d @a has nothing in it
        scalar(@a["* * *"]);        # 48000000


Internally these things would work exactly the same as perl5 arrays,
doubling their internal memory and copying the old into the new as
needed, unless they are marked sparse in which case they would be
trees.


-- 
                          David Nicol 816.235.1187 [EMAIL PROTECTED]
          Kansas City Perl Mongers will meet Sept. 20th at 7:00 in
          Westport Flea Market Bar & Grill  http://tipjar.com/kcpm

Reply via email to