Re: Parrot: copying arrays

2002-07-12 Thread Alberto Manuel Brandão Simões
On Fri, 2002-07-12 at 08:34, Alberto Manuel Brandão Simões wrote: > > Hi. > > Using PerlArray PMC, if I use > > new P0, .PerlArray > set P1, P0 > > P1 becomes a 'pointer' to the same array as P0. Now the question is, and > if I want a new copy? If all PerlArray elements are > integ

Parrot: copying arrays

2002-07-12 Thread Alberto Manuel Brandão Simões
Hi. Using PerlArray PMC, if I use new P0, .PerlArray set P1, P0 P1 becomes a 'pointer' to the same array as P0. Now the question is, and if I want a new copy? If all PerlArray elements are integer/number/string I think that should be easy to do a loop to copy all values. The qu