Jeff Clites <[EMAIL PROTECTED]> wrote:

> Do we have plans on how we might implement this via Parrot?

Sure.

> To put it another way, the expression "foo.bar()" in Python doesn't
> really parse as "invoke method bar on object foo", but rather as
> "lookup attribute bar on object foo

Well, there isn't much difference here. "invoke method bar" implies a
method lookup that normally checks the method cache for existing
(statically built) methods. If a method isn't found there, the dynamic
plan B comes in. And if Python code overrides a method (attribute slot)
the method cache has to be invalidated.

More fun is probably to get the same inheritance ("mro") as Python.

leo

Reply via email to