X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FUndefTolerant.pm;h=f25b684a91caa5af9b30883cfe9ec10172c6cab5;hb=94f9d1987e90ff757ed62acab59b092a79609da1;hp=0f3bec64fb276cdf71d39dc7795c0e48940bf558;hpb=8e67fa0cc9dee4d8ea506e8f7db0c5d6a2ef9917;p=gitmo%2FMooseX-UndefTolerant.git diff --git a/lib/MooseX/UndefTolerant.pm b/lib/MooseX/UndefTolerant.pm index 0f3bec6..f25b684 100644 --- a/lib/MooseX/UndefTolerant.pm +++ b/lib/MooseX/UndefTolerant.pm @@ -60,7 +60,7 @@ Or, if you only want one attribute to have this behaviour: Loading this module in your L class makes initialization of your attributes tolerant of undef. If you specify the value of undef to any of -the attributes they will not be initialized. Effectively behaving as if you +the attributes they will not be initialized, effectively behaving as if you had not provided a value at all. =head1 MOTIVATION @@ -99,6 +99,14 @@ example: have your cake and eat it too! See L. +=head1 CAVEATS + +This extension does not currently work in immutable classes when applying the +trait to some (but not all) attributes in the class. This is because the +inlined constructor initialization code currently lives in +L, not L. The good +news is that this is expected to be changing shortly. + =head1 AUTHOR Cory G Watson, C<< >>