From: Jesse Luehrs Date: Sat, 7 May 2011 00:28:41 +0000 (-0500) Subject: this has had an appropriate warning for a while now X-Git-Tag: 2.0003~36 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b1fffd0f881c6bec7bad398d38dbac35c98f4f3c;p=gitmo%2FMoose.git this has had an appropriate warning for a while now --- diff --git a/lib/Moose/Manual/FAQ.pod b/lib/Moose/Manual/FAQ.pod index 4b96a1f..e3beadf 100644 --- a/lib/Moose/Manual/FAQ.pod +++ b/lib/Moose/Manual/FAQ.pod @@ -185,23 +185,6 @@ Still another option is to write a custom attribute metaclass, which is also outside the scope of this document, but we would be happy to explain it on #moose or the mailing list. -=head3 I created an attribute, where are my accessors? - -Accessors are B created implicitly, you B ask Moose to -create them for you. My guess is that you have this: - - has 'foo' => (isa => 'Bar'); - -when what you really want to say is: - - has 'foo' => (isa => 'Bar', is => 'rw'); - -The reason this is so is because it is a perfectly valid use case to -I have an accessor. The simplest one is that you want to write -your own. If Moose created one automatically, then because of the -order in which classes are constructed, Moose would overwrite your -custom accessor. You wouldn't want that would you? - =head2 Method Modifiers =head3 How can I affect the values in C<@_> using C?