Togos <[EMAIL PROTECTED]> wrote:

[ add semantics ]

> ... Adding something to a PythonInt
> would return a PythonInt, while adding to a PerlInt
> would return a PerlInt.

That's anway the way these oopcode work:

  add PDest, PSsrc, PVal

  PSrc->vtable->add ...
     do add according to type, then:

     PDest->vtable->set_integer_native(...result)

so its up to the vtable set_integer_native to do the right thing,
which is e.g. morph()ing the destination to the desired type.

leo

Reply via email to