X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FC3.pm;h=e7c16a01869b63f49d53b48f6bedeb3812eb3cbd;hb=a86fb548d54ed12dc56dd68a0838a55b8d26c26d;hp=589f104c431cc71d6a71aabe43d6573913b099e6;hpb=97d515483413d7a64828d301be6f92b30c4da9a7;p=gitmo%2FClass-C3.git diff --git a/lib/Class/C3.pm b/lib/Class/C3.pm index 589f104..e7c16a0 100644 --- a/lib/Class/C3.pm +++ b/lib/Class/C3.pm @@ -4,7 +4,7 @@ package Class::C3; use strict; use warnings; -our $VERSION = '0.20'; +our $VERSION = '0.21'; our $C3_IN_CORE; our $C3_XS; @@ -227,6 +227,7 @@ Class::C3 - A pragma to use the C3 method resolution order algortihm =head1 SYNOPSIS + # NOTE - DO NOT USE Class::C3 directly as a user, use MRO::Compat instead! package A; use Class::C3; sub hello { 'A::hello' } @@ -270,6 +271,11 @@ Class::C3 - A pragma to use the C3 method resolution order algortihm This is pragma to change Perl 5's standard method resolution order from depth-first left-to-right (a.k.a - pre-order) to the more sophisticated C3 method resolution order. +B YOU SHOULD NOT USE THIS MODULE DIRECTLY - The feature provided +is integrated into perl version >= 5.9.5, and you should use L +instead, which will use the core implementation in newer perls, but fallback +to using this implementation on older perls. + =head2 What is C3? C3 is the name of an algorithm which aims to provide a sane method resolution order under multiple