Re: [PATCH] supplant op

2003-12-25 Thread Leopold Toetsch
Luke Palmer [EMAIL PROTECTED] wrote: ... I think a Ref would work, but Ref delegates set_pmc to what it's referencing, so it's never possible to change the referent! Is it? Some time ago I proposed additional opcodes dealing with Ref PMCs. You mention it, yep - they need deref and setref or

Re: [PATCH] supplant op

2003-12-25 Thread Luke Palmer
Leopold Toetsch writes: Luke Palmer [EMAIL PROTECTED] wrote: ... I think a Ref would work, but Ref delegates set_pmc to what it's referencing, so it's never possible to change the referent! Is it? Some time ago I proposed additional opcodes dealing with Ref PMCs. You mention it, yep -

[PATCH] supplant op

2003-12-24 Thread Luke Palmer
Here's that op that replaces the header of one PMC with another's, if people are interested. Luke Index: ops/ops.num === RCS file: /cvs/public/parrot/ops/ops.num,v retrieving revision 1.15 diff -u -r1.15 ops.num --- ops/ops.num 10

Re: [PATCH] supplant op

2003-12-24 Thread Leopold Toetsch
Luke Palmer [EMAIL PROTECTED] wrote: Here's that op that replaces the header of one PMC with another's, if people are interested. +inline op supplant(in PMC, in PMC) { +*$1 = *$2; Brrr. I'm not willing to contemplate now on the nasty side effects that might have, but what for are you

Re: [PATCH] supplant op

2003-12-24 Thread Luke Palmer
Leopold Toetsch writes: Luke Palmer [EMAIL PROTECTED] wrote: Here's that op that replaces the header of one PMC with another's, if people are interested. +inline op supplant(in PMC, in PMC) { +*$1 = *$2; Brrr. I'm not willing to contemplate now on the nasty side effects that