"Michel J Lambert" <[EMAIL PROTECTED]> wrote: > A second approach is to throw out this weird transmogrifying class stuff, > and just construct a new PMC of the appropriate type to put into the > destination register. Why would we *ever* care what's in the destination > register, since it never gets it's vtable methods called. We just go in
Remember that the higher level (eg perl6) will expect to be able to find the PMC afterwards. For example: $foo = "abc"; $bar = \$foo; print $$bar; $foo = 3; print $$bar; Under perl 5, this will print abc3, as the reference stays intact following the re-assignment to $foo. Assuming that this will stay the same for perl 6, we must either keep the original PMC address, or find and correct all references to it. -- Peter Gibbs EmKel Systems