summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-08-05 08:26:55 -0700
committerJesse Luehrs <doy@tozt.net>2013-08-05 08:26:55 -0700
commit8e0b4f219f2d8d94cb6937ef47168ac5fac03cd9 (patch)
tree6a009b9feb8f4349ce0b5275ec098074de5ef94a /lib
parenta1c1e0d78e8bebcf149e8bb2fe865d68a079c796 (diff)
parent090b242d8855067df4a532a2112c53bc8cc2b83a (diff)
downloadmoosex-nonmoose-8e0b4f219f2d8d94cb6937ef47168ac5fac03cd9.tar.gz
moosex-nonmoose-8e0b4f219f2d8d94cb6937ef47168ac5fac03cd9.zip
Merge pull request #3 from brianphillips/master
doc addition about modifying @ISA after extends
Diffstat (limited to 'lib')
-rw-r--r--lib/MooseX/NonMoose.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MooseX/NonMoose.pm b/lib/MooseX/NonMoose.pm
index f22bf1c..5a989e0 100644
--- a/lib/MooseX/NonMoose.pm
+++ b/lib/MooseX/NonMoose.pm
@@ -102,6 +102,11 @@ any class. For globref-based classes in particular, L<MooseX::GlobRef> will
also allow Moose to work. For more information, see the C<032-moosex-insideout>
and C<033-moosex-globref> tests bundled with this dist.
+=item * Modifying your class' C<@ISA> after an intial C<extends> call will potentially
+cause problems if any of those new entries in the C<@ISA> override the constructor.
+C<MooseX::NonMoose> wraps the nearest C<new()> method at the time C<extends>
+is called and will not see any other C<new()> methods in the @ISA hierarchy.
+
=item * Completely overriding the constructor in a class using
C<MooseX::NonMoose> (i.e. using C<sub new { ... }>) currently doesn't work,
although using method modifiers on the constructor should work identically to