At 11:35 AM +0200 4/30/04, Leopold Toetsch wrote:
Dan Sugalski <[EMAIL PROTECTED]> wrote:
 If we go MMD all the way, we can skip the bytecode->C->bytecode
 transition for MMD functions that are written in parrot bytecode, and
 instead dispatch to them like any other sub.

Not really. Or not w/o significant overhead for MMD functions implemented in C.

Well... about that. It's actually easily doable with a bit of trickery. We can either:


1) Mark the overload subs as special and change their calling conventions
2) Wrap the overload subs in some bytecode that Does The Right Thing--takes a continuation, pushes the registers to the stack, then calls the overload sub--when we add them to the MMD table.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to