X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoo.pm;h=0ee82744c4121ecc3410120e9a99ed7fbc7b8667;hb=c1c6bd6df202007ac3b859ac41c3017ad9e82ead;hp=3711a68b727b030bf03fac9bab1b5a01ea3c0aa1;hpb=917f27ca814a6e26cbb7e7803a8c492e70c846e3;p=gitmo%2FMoo.git diff --git a/lib/Moo.pm b/lib/Moo.pm index 3711a68..0ee8274 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -188,7 +188,7 @@ sub _constructor_maker_for { =head1 NAME -Moo - Minimalist Object Orientation (with Moose compatiblity) +Moo - Minimalist Object Orientation (with Moose compatibility) =head1 SYNOPSIS @@ -281,6 +281,10 @@ metaclasses for your L and L packages, so you should be able to use them in L code without anybody ever noticing you aren't using L everywhere. +L will also create L for +classes and roles, so that C<< isa => 'MyClass' >> and C<< isa => 'MyRole' >> +work the same as for L classes and roles. + Extending a L class or consuming a L will also work. So will extending a L class or consuming a L - but note @@ -467,6 +471,9 @@ one should do die "$_[0] is not a number!" unless looks_like_number $_[0] }, +Note that the return value is ignored, only whether the sub lives or +dies matters. + L Since L does B run the C check before C if a coercion