From: Chris Prather Date: Mon, 13 Jul 2009 19:53:05 +0000 (-0400) Subject: document work around for is => 'bare' in older Moose X-Git-Tag: 0.88~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3de02fd8c628b7cbad1d6731c98980e7c76e28a5;p=gitmo%2FMoose.git document work around for is => 'bare' in older Moose --- diff --git a/lib/Moose/Manual/Delta.pod b/lib/Moose/Manual/Delta.pod index 43e8196..a548c0a 100644 --- a/lib/Moose/Manual/Delta.pod +++ b/lib/Moose/Manual/Delta.pod @@ -20,7 +20,10 @@ send us a patch. When an attribute generates I accessors, we now warn. This is to help users who forget the C option. If you really do not want any accessors, -you can use C<< is => 'bare' >>. +you can use C<< is => 'bare' >>. You can maintain back compat with older +versions of Moose by using something like: + + ($Moose::VERSION >= 0.84 ? is => 'bare' : ()) When an accessor overwrites an existing method, we now warn. To work around this warning (if you really must have this behavior), you can explicitly