develooper Front page | perl.perl6.internals | Postings from December 2001

Re: [COMMIT] miniperl has been somewhat busy...

Thread Previous | Thread Next
From:
Jason Gloudon
Date:
December 17, 2001 07:29
Subject:
Re: [COMMIT] miniperl has been somewhat busy...
Message ID:
20011217102916.B7631@gloudon.com
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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About