What about 'say'? It's a method, not an opcode, and:
say $S0
works just fine.
I don't think there's *a priori* a problem to implicitly upgrade
something to a PMC to perform a non JIT-able task on it. I do think
pulling too hard at this thread might require a closer look at what's
current in src/pmc/ vs. src/*.c vs src/ops/ (where's there's
smoke...): a lot of the current state has been a result of organic
(rather than planned) growth.
Regards.
On Aug 25, 2006, at 3:15 PM, Chip Salzenberg wrote:
(For those not watching CVS, Leo's just added a METHOD to_int() to
String.)
Seems like this is the kind of thing that needs to have a common
subroutine
in the C source so it can be used elsewhere, and an opcode so it's
usable
with an S register. And once you've done that, the METHOD becomes
redundant.
--
Chip Salzenberg <[EMAIL PROTECTED]>
--
Will "Coke" Coleda
[EMAIL PROTECTED]