Skip to content

Commit 375d6d6

Browse files
authored
Link to Wikipedia to explain what C3 is
1 parent b6a51b0 commit 375d6d6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/Language/classtut.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,10 @@ L<MOP|/type/Metamodel::ClassHOW#method_can>.
564564
565565
As mentioned before, a class can inherit from multiple classes. When a
566566
class inherits from multiple classes the dispatcher knows to look at both
567-
classes when looking up a method to search for. Perl 6 uses the C3
568-
algorithm to linearize multiple inheritance hierarchies, which is
569-
better than depth-first search for handling multiple inheritance.
567+
classes when looking up a method to search for. Perl 6 uses the L<C3
568+
algorithm|https://en.wikipedia.org/wiki/C3_linearization> to linearize
569+
multiple inheritance hierarchies, which is better than depth-first search
570+
for handling multiple inheritance.
570571
571572
=begin code :skip-test
572573
class GeekCook is Programmer is Cook {

0 commit comments

Comments
 (0)