From: Karen Etheridge Date: Wed, 3 Nov 2010 23:03:53 +0000 (-0700) Subject: add note about current limitations of usage. X-Git-Tag: 0.09~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=94f9d1987e90ff757ed62acab59b092a79609da1;p=gitmo%2FMooseX-UndefTolerant.git add note about current limitations of usage. --- 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<< >>