Puzzling OO design problem

Michele Simionato michele.simionato at gmail.com
Sun Apr 10 00:35:58 EDT 2005


Dirk wrote:
> So I dug through the documentation and found that new-style classes
> compute a monotonic linearization of the inheritance graph, observing
>local precedence order, using the algorithm also used in Dylan
> described here:

>http://www.webcom.com/haahr/dylan/linearization-oopsla96.html

<nitpick mode>
Actually Dylan authors invented the C3 algorithm but Dylan does not use
it:
for compatibility with Lisp, Dylan uses the CLOS algorithm. Languages
that
I know that use C3 are Python and Goo. Playing with the MOP you can get
lispy languages to follow C3 too.
</nitpick mode>




More information about the Python-list mailing list