slang-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] foreach in one array dimension


Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
>g([ ["foo"], ["foo"] ]);

This does not define an array of two arrays.  Rather, it defines an
array of String_Type[2].  If you want an array of arrays, then you
will have to explicitely create it:

    a = Array_Type[2];
    a[0] = ["foo"];
    a[1] = ["bar"];

--John

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]