From: Dave Rolsky Date: Mon, 7 Feb 2011 23:16:33 +0000 (-0600) Subject: Tweaks Sam's patch on weak_ref expiration X-Git-Tag: 1.9903~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92c5fea0eb06cb583c12003c253bb4e6e0c3fb8b;p=gitmo%2FMoose.git Tweaks Sam's patch on weak_ref expiration --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 1ffc14a..df6f68c 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -474,8 +474,9 @@ say anything about the attribute's value, which can be C. This will tell the class to store the value of this attribute as a weakened reference. If an attribute is a weakened reference, it B also be -coerced. Note that when a weak ref expires, the attribute is still considered -to be set for purposes of predicate, default, etc. +coerced. Note that when a weak ref expires, the attribute's value becomes +undefined, and is still considered to be set for purposes of predicate, +default, etc. =item I (1|0)> @@ -683,8 +684,9 @@ information. Creates a method to perform a basic test to see if a value has been set in the attribute. See the L for more information. -Note that the predicate will return true even for a C attribute whose -value has expired. + +Note that the predicate will return true even for a C attribute +whose value has expired. =item I => (0|1)