In computing, the C3 superclass linearization is an algorithm used primarily to obtain the order in which methods should be inherited (the "linearization"), and is often termed "MRO" for Method Resolution Order. The name C3 refers to the three important properties of the resulting linearization: a consistent extended precedence graph, preservation of local precedence order, and monotonicity. It was first published at the 1996 OOPSLA conference, in a paper entitled "A Monotonic Superclass Linearization for Dylan". It was adapted to the Open Dylan implementation in January 2012  following an enhancement proposal. Subsequently, it has been chosen as the default algorithm for method resolution in Python 2.3 (and newer), Perl 6, and Parrot. It is also available as an alternative, non-default MRO in the core of Perl 5 starting with version 5.10.0. An extension implementation for earlier versions of Perl 5 named
Class::C3 exists on CPAN.
- "A Monotonic Superclass Linearization for Dylan". OOPSLA '96 Conference Proceedings. ACM Press. 1996-06-28. pp. 69–82. doi:10.1145/236337.236343. ISBN 0-89791-788-X.
- News item on opendylan.org
- Dylan Enhancement Proposal 3: C3 superclass linearization
- Python 2.3's use of C3 MRO
- Tutorial for practical applications of C3 linearization using Python
- Perl 6 will use C3 MRO
- Parrot uses C3 MRO
- C3 MRO available in Perl 5.10
- Perl 5 extension for C3 MRO on CPAN
|This programming language–related article is a stub. You can help Wikipedia by expanding it.|