On Fri, Aug 25, 2006 at 03:32:12PM -0400, Will Coleda wrote:
> What about 'say'? It's a method, not an opcode, and:
>   say $S0
> works just fine.

Well, 'say' is a parrotio METHOD, not a String METHOD:

    METHOD INTVAL say(STRING *s)

so the SELF is an io PMC and nothing is hard.  Expressing to_int() as a
method where the SELF is a String PMC leaves the string registers out in the
cold.

The 'say' opcode also requires hackery in src/builtin.c; but since "requires
hackery" seems to be the status quo ante for half of Parrot, perhaps I should
let that go unmentiond.  Oops, too late.  ("Bitter?  Oh, a *tad*.")

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

No kidding.  :-/
-- 
Chip Salzenberg <[EMAIL PROTECTED]>

Reply via email to