summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Phillips <brian@thephillips.info>2011-03-03 12:18:50 -0800
committerBrian Phillips <brian@thephillips.info>2011-03-03 12:18:50 -0800
commit090b242d8855067df4a532a2112c53bc8cc2b83a (patch)
tree64b6bb3fa2d97bf6c060e22f71f942edada215aa /lib
parent1903997559f0c113d47cd8de778b6295d8beb411 (diff)
downloadmoosex-nonmoose-090b242d8855067df4a532a2112c53bc8cc2b83a.tar.gz
moosex-nonmoose-090b242d8855067df4a532a2112c53bc8cc2b83a.zip
Add caveat about modifying @ISA after calling 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 dd66b92..0fd9282 100644
--- a/lib/MooseX/NonMoose.pm
+++ b/lib/MooseX/NonMoose.pm
@@ -101,6 +101,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