A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-July/015872.html below:

[Python-Dev] Re: Method resolution order

[Python-Dev] Re: Method resolution order [Python-Dev] Re: Method resolution orderGuido van Rossum guido@digicool.com
Wed, 11 Jul 2001 19:21:49 -0400
> Guido van Rossum wrote:
> > Using the classic [depth-first, left-right] lookup rule, construct the
> > list of classes that would be searched, including duplicates.  Now for
> > each class that occurs in the list multiple times, remove all
> > occurrences except for the last.  The resulting list contains each
> > ancestor class exactly once
> 
> Is this original or is it used by other languages as well?  My books on
> Dylan and CLOS are at home but I think they do something similar.
> 
>   Neil

I didn't make it up!  I got it from the reference [1] in the PEP.  C+
seems to do something similar (with added conflict checking).

It would be good to mention that this is not a new invention.  If you
can confirm that Dylan and CLOS have this, I'll add that.

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4