else{
$accessor .= "$slot = $value;\n";
}
+ if ($is_weak) {
+ $accessor .= "Scalar::Util::weaken($slot) if ref $slot;\n";
+ }
$accessor .= "}\n";
}
=head1 VERSION
-This document describes Mouse version 0.40_05
+This document describes Mouse version 0.40_06
=head1 SEE ALSO