From: Florian Ragwitz Date: Wed, 18 Mar 2009 14:17:20 +0000 (+0000) Subject: Load Class::C3. Other code relies on us doing that. X-Git-Tag: v1.001000~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d2b0e111fb6c2a35f32ddf2c352523fe73c45afd;p=p5sagit%2FClass-C3-Componentised.git Load Class::C3. Other code relies on us doing that. --- diff --git a/Makefile.PL b/Makefile.PL index dae3913..09ff4d4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,6 +10,13 @@ requires 'Class::Inspector'; requires 'Carp'; requires 'Test::Exception'; +# we don't actually need Class::C3. MRO::Compat loads it on 5.8. On 5.10 it +# isn't needed. However, some existing code relies on us loading Class::C3. We +# don't want to break it just yet. Therefore we depend directly on Class::C3 as +# well. + +requires 'Class::C3' => '0.20'; + build_requires 'FindBin'; WriteAll; diff --git a/lib/Class/C3/Componentised.pm b/lib/Class/C3/Componentised.pm index 9d3f1fd..ec88504 100644 --- a/lib/Class/C3/Componentised.pm +++ b/lib/Class/C3/Componentised.pm @@ -40,7 +40,9 @@ L. use strict; use warnings; +# see Makefile.PL for discussion on why we load both Class::C3 and MRO::Compat use MRO::Compat; +use Class::C3 (); use Class::Inspector; use Carp;