At 12:54 PM +0200 5/7/04, Leopold Toetsch wrote:
Leopold Toetsch <[EMAIL PROTECTED]> wrote:
Dan Sugalski <[EMAIL PROTECTED]> wrote:

 ... And... we
 move *all* the operator functions out of the vtable and into the MMD
 system. All of it.

 This *all* includes vtable functions like add_int() or add_float() too,
 I presume. For these we have left argument dispatch only. But what is
 the right argument? A PerlInt, TclInt, PyInt (or ..Float)? Or is it
> assumed to be the same as the left argument type?

The three options are promotion to PMC, leaving these in the vtable, or having a mmd-variant for them.


I'm up for the mmd-variant version. We just have a one-dimensional table for PMC/int, PMC/float, and PMC/string functions and have the ops directly dispatch to it. Seems simpler than stuffing the functions into the base MMD table too.
--
Dan


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

Reply via email to