On Fri, Dec 14, 2001 at 09:59:30AM -0800, Brent Dax wrote:

> # > >       new P0, PerlInt
> # > >       new P1, PerlString
> # > >       set P1, P0

> What I'm basically asking is, in that case are we going to be calling
>       $1->vtable->set_string($2->vtable->get_string())
> or
>       $1->vtable->set_integer($2->vtable->get_integer())

Assuming set does the equivalent of perl's '=' assignment this should call:

$2->vtable->clone($1)

Which makes a copy of $2 in $1 by overwriting the PMC structure of $1 with $2's
contents. 

'alias' seems like a good name for the pointer copy opcode.

-- 
Jason

Reply via email to