[perl #47828] [TODO] Implement the 'copy' opcode

2008-04-13 Thread Bernhard Schmalhofer via RT
On Mi. 19. Mär. 2008, 07:38:36, pmichaud wrote: > > On Thu Dec 13 17:47:05 2007, [EMAIL PROTECTED] wrote: > > > Implement a 'copy' assignment (at least until we get the 'copy' > > > opcode -- see RT#47828). The copy opcode has been added in r23917. Can this ticket be resolved now? Regards, Ber

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2008-04-13 Thread Patrick R. Michaud
On Sun, Apr 13, 2008 at 09:05:38AM -0700, Bernhard Schmalhofer via RT wrote: > On Mi. 19. Mär. 2008, 07:38:36, pmichaud wrote: > > > > On Thu Dec 13 17:47:05 2007, [EMAIL PROTECTED] wrote: > > > > Implement a 'copy' assignment (at least until we get the 'copy' > > > > opcode -- see RT#47828). > >

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2008-03-19 Thread Patrick R. Michaud
On Mon, Mar 17, 2008 at 10:26:21AM -0700, Will Coleda via RT wrote: > compilers/pct/src/PAST/Compiler.pir says: > > On Thu Dec 13 17:47:05 2007, [EMAIL PROTECTED] wrote: > > Implement a 'copy' assignment (at least until we get the 'copy' > > opcode -- see RT#47828). > > Now that the copy op is im

[perl #47828] [TODO] Implement the 'copy' opcode

2008-03-17 Thread Will Coleda via RT
On Thu Dec 13 17:47:05 2007, [EMAIL PROTECTED] wrote: > On Tuesday 11 December 2007 20:41:08 chromatic wrote: > > > Here's a first step. I added a stripped-down version of the code in RT > > #48467 as a second test, and it fails for me with: > > > > set_pmc() not implemented in class 'Num' >

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2007-12-13 Thread chromatic
On Tuesday 11 December 2007 20:41:08 chromatic wrote: > Here's a first step. I added a stripped-down version of the code in RT > #48467 as a second test, and it fails for me with: > > set_pmc() not implemented in class 'Num' > > I tried to debug it, but I have what they call "Stupid Fingers

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2007-12-11 Thread chromatic
On Tuesday 11 December 2007 12:35:19 Allison Randal via RT wrote: > Task description: > > Add an opcode 'copy' to src/ops/set.ops. Similar to 'clone'. > > - It takes two PMC arguments > > - It calls VTABLE_morph on $1, and then VTABLE_assign on the two. > > - It needs to call VTABLE_type to get th

[perl #47828] [TODO] Implement the 'copy' opcode

2007-12-11 Thread Allison Randal via RT
Task description: Add an opcode 'copy' to src/ops/set.ops. Similar to 'clone'. - It takes two PMC arguments - It calls VTABLE_morph on $1, and then VTABLE_assign on the two. - It needs to call VTABLE_type to get the type of the source PMC to pass to 'morph' instead of calling $1->vtable->base_t

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2007-11-27 Thread Allison Randal
Patrick R. Michaud via RT wrote: The opcode will be implemented by calling the 'morph' and 'assign' vtable functions. Just a note that there are a lot of the built-in types -- especially the aggregate and subroutine types -- that don't currently have implementations of 'assign'. This is why

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2007-11-26 Thread Patrick R. Michaud
On Mon, Nov 26, 2007 at 09:03:38AM -0600, Patrick R. Michaud wrote: > On Mon, Nov 26, 2007 at 01:03:32AM -0800, Allison Randal wrote: > > The 'copy' opcode is similar to 'clone' but it reuses the PMC header of > > the destination register. It takes two PMC arguments. > > > > The opcode will be im

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2007-11-26 Thread Patrick R. Michaud
On Mon, Nov 26, 2007 at 01:03:32AM -0800, Allison Randal wrote: > The 'copy' opcode is similar to 'clone' but it reuses the PMC header of > the destination register. It takes two PMC arguments. > > The opcode will be implemented by calling the 'morph' and 'assign' > vtable functions. Just a not

[perl #47828] [TODO] Implement the 'copy' opcode

2007-11-26 Thread via RT
# New Ticket Created by Allison Randal # Please include the string: [perl #47828] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=47828 > The 'copy' opcode is similar to 'clone' but it reuses the PMC header of the destinati