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
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 -
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
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
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