On Mon, Dec 17, 2001 at 09:43:28AM -0500, Dan Sugalski wrote:

> >Can you clarify what you mean by "deep copy" at least to the pointer level ?
> >
> >set P0, P1
> >
> >should invoke P0's "assignment" vtable function (does anyone know if it 
> >already
> >exists under a different name ?). For the existing PMC's the appropriate
> >assignment vtable calls P1's clone function with P0 as the destination.
> 
> The entry's set_xxx, where xxx is integer, number, string, or value. 
> However, that's not appropriate here--set P0, P1 should just copy the 
> pointer from P1 to P0. Actually stuffing the value of the PMC pointed to by 
> P1 into the one pointed to in P0 should be done with a different op.

Ok, so set creates an alias. The string set opcode should also create an
alias for consistency, no ?

-- 
Jason

Reply via email to