Re: Multiarray usage?

2002-11-30 Thread Jerome Quelin
On Vendredi 29 Novembre 2002 19:02, you wrote: Speaking of limitations, what can hold a multiarray? Only integers, only strings, only pmc, a mix of everything? Everything a list can hold (i.e. all above, but no mix), though it would need a new class, which takes an list_type initializer. And

Re: Multiarray usage?

2002-11-30 Thread Leopold Toetsch
Jerome Quelin wrote: On Vendredi 29 Novembre 2002 19:02, you wrote: This makes me think... A PerlArray can hold PMCs... So I can have a PerlArray of PerlArrays: This is always ok. set P10, P2[1] set I0, P10[0] or directly: set I0, P2[1;0] It seems to work, and it is

Multiarray usage?

2002-11-29 Thread Jerome Quelin
Hi, I'd like to use multi-arrays, but I can't understand how they're working. I looked at $PARROT/t/pmc/multiarray.t, but it's a bit obscure. Could you help me to understand them please? Or are they deprecated? Should I use something else to have arrays of arrays? What are the limitations of

Re: Multiarray usage?

2002-11-29 Thread Leopold Toetsch
Jerome Quelin wrote: Hi, I'd like to use multi-arrays, but I can't understand how they're working. I looked at $PARROT/t/pmc/multiarray.t, but it's a bit obscure. underdocumented Could you help me to understand them please? Or are they deprecated? Yes/No Should I use something else

Re: Multiarray usage?

2002-11-29 Thread Jerome Quelin
On Vendredi 29 Novembre 2002 17:18, Leopold Toetsch wrote: Should I use something else to have arrays of arrays? multiarrays are mainly intended for huge packed multi dim arrays. Then what should I use for a 2D array? ... What are the limitations of multiarrays? I've read in

Re: Multiarray usage?

2002-11-29 Thread Leopold Toetsch
Jerome Quelin wrote: On Vendredi 29 Novembre 2002 17:18, Leopold Toetsch wrote: Then what should I use for a 2D array? The example (test) is an 2D array. So, a so-called MultiArray is in fact one array, but the first n elems are the elems of the 1st line, the next n elems are the 2nd