At 10:11 AM 8/15/00 -0400, Chaim Frenkel wrote:
>This discussion of vtbls and how to do cross products has me confused.
>
>I thought there were two different _real_ vtbls and an op tree.
>
>The low-level core 'objects' have a vtbl that handles operations on
>the object itself.

Right, those are vtables referenced by the base variable structure.

>The higher level perl user objects have a vtbl that handles method dispatch.
>Again operations on the object itself.

AKA "package methods". These are the normal perl methods, nothing fancy.

>Cross operations, addition, concatination, etc. Are handled in the optree.

Yup.

>I can't see how objectA's vtbl can handle a cross-operation to objectB's
>vtbl.

It'd have to overload the vtable functions in the underlying perl object. 
We may set it so the base vtable for objects just calls known functions in 
the package. (I'd like the base vtable functions to be capable of being 
written in perl. Even if we don't want to write the floating point division 
routines ourselves, I'd like to be able to....)

                                        Dan

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

Reply via email to