On Thu, Oct 18, 2001 at 12:30:29PM +0100, Simon Cozens wrote:
> On Mon, Oct 08, 2001 at 06:36:32PM -0400, Dan Sugalski wrote:
> >     P1->vtable_funcs[VTABLE_ADD + P2->num_type](P1, P2, P0);
> 
> Uhm, since num_type and vtable_funcs are part of the vtable
> structure, that would be more like
>      P1->vtable->vtable_funcs[VTABLE_ADD + P2->vtable->num_type](P1, P2, P0);

I've suddenly become unconvinced even of this.

I'm under the impression that the signature of the add method should be

    void foo (interpreter, destination, left, right)

Shouldn't the above be more like:

    P1->vtable->vtable_funcs[VTABLE_ADD + P2->vtable->num_type](i, P0, P1, P2);

I know this is a trivial change, but I'm just making sure I've wrapped
my head around it the right way.

-- 
<boojum> luckily, my toes have no trailing newline characters

Reply via email to