Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MMD with native type right operand

3 views
Skip to first unread message

Leopold Toetsch

unread,
Nov 21, 2004, 5:50:17 AM11/21/04
to Perl 6 Internals
I know, I've asked this question some time ago, and implemented
MMD_ADD_INT and friends. But I can't reproduce the full rationale WRT
dispatching of these methods.

add Px, Py, Iz

can clearly use only the left hand operand Py. So it's not a real MMD,
the right hand operand is always a plain integer. This would indicate
that it should be a vtable call.

OTOH

add Px, Py, Pz

is an MMD method. Having two different dispatch schemes seems a bit
undesirable for such similar operations. But two schemes are needed
anyway for overriding e.g. set_integer, which is a vtable.

So I'm quite unsure, what's right.

leo

0 new messages