Algorithm-C3

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  preserving local precedence orderings.
 
  Below is a brief explanation of C3 taken from the Class::C3 module. For
  more detailed information, see the "SEE ALSO" section and the links
  there.
 
What is C3?
  C3 is the name of an algorithm which aims to provide a sane method
  resolution order under multiple inheritance. It was first introduced in
  the language Dylan (see links in the "SEE ALSO" section), and then later
  adopted as the preferred MRO (Method Resolution Order) for the new-style
  classes in Python 2.3. Most recently it has been adopted as the
  'canonical' MRO for Perl 6 classes, and the default MRO for Parrot
  objects as well.
 
How does C3 work.
  C3 works by always preserving local precedence ordering. This
  essentially means that no class will appear before any of it's
  subclasses. Take the classic diamond inheritance pattern for instance:
 
       <A>

lib/Algorithm/C3.pm  view on Meta::CPAN

172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
Below is a brief explanation of C3 taken from the L<Class::C3>
module. For more detailed information, see the L<SEE ALSO> section
and the links there.
 
=head2 What is C3?
 
C3 is the name of an algorithm which aims to provide a sane method
resolution order under multiple inheritance. It was first introduced
in the language Dylan (see links in the L<SEE ALSO> section), and
then later adopted as the preferred MRO (Method Resolution Order)
for the new-style classes in Python 2.3. Most recently it has been
adopted as the 'canonical' MRO for Perl 6 classes, and the default
MRO for Parrot objects as well.
 
=head2 How does C3 work.
 
C3 works by always preserving local precedence ordering. This
essentially means that no class will appear before any of it's
subclasses. Take the classic diamond inheritance pattern for
instance:



( run in 0.583 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )