Sam Ruby <[EMAIL PROTECTED]> wrote:

> As long as find_method itself can be overridden, this above is merely a
> description of the default behavior, not a hard requirement.

Yes, of course. C<find_method> *is* overridable and, as all method lookup
is calling C<find_method>, the code can do whatever is needed. I'm
describing the default implementation of Parrot, which should be a
reasonable base for the target languages.

> I continue to believe that it is not a good idea for Parrot to decide
> apriori exactly which methods are to be mmd universally for all
> languages and all objects.

Again that's Parrot's default implementation performed via
C<find_method> (or the extensions to the method lookup, I've outlined in
several threads).

It's up to C<find_method> to perform a MMD-ish lookup - or not. But
given that PyPy is using MMD, I see no reason for Python on Parrot not
to use MMD for the infix operators. MMD saves cascades of "if"
statements checking the right operand's type.

> - Sam Ruby

leo

Reply via email to