From: Flavio Poletti Date: Sat, 29 Dec 2007 16:40:06 +0000 (+0000) Subject: fixed documentation for predicate to match behaviour changed in 0.43 X-Git-Tag: 0_51~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07dca7e3186d90e9e7438b90c986c6508c785ccf;p=gitmo%2FClass-MOP.git fixed documentation for predicate to match behaviour changed in 0.43 --- diff --git a/lib/Class/MOP/Attribute.pm b/lib/Class/MOP/Attribute.pm index a1b35be..f8054c3 100644 --- a/lib/Class/MOP/Attribute.pm +++ b/lib/Class/MOP/Attribute.pm @@ -495,9 +495,19 @@ C value to the attribute. =item I -This is a basic test to see if the value of the attribute is not -C. It will return true (C<1>) if the attribute's value is -defined, and false (C<0>) otherwise. +This is a basic test to see if any value has been set for the +attribute. It will return true (C<1>) if the attribute has been set +to any value (even C), and false (C<0>) otherwise. + +B +The predicate will return true even when you set an attribute's +value to C. This behaviour has changed as of version 0.43. In +older versions, the predicate (erroneously) checked for attribute +value definedness, instead of presence as it is now. + +If you really want to get rid of the value, you have to define and +use a I (see below). + =item I