Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 120888
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: sdondley [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.2007



Subject: Suggestion for documentation improvement regarding 'ro' attributes
Date: Sun, 2 Apr 2017 16:15:23 -0400
To: bug-Moose [...] rt.cpan.org
From: Steve Dondley <sdondley [...] gmail.com>
Currently, the documentation at http://search.cpan.org/dist/Moose-2.0604/lib/Moose/Manual/Attributes.pod#Read-write_vs._read-only states: "When an attribute is ro, you may only read the current value of the attribute." However, when creating a new object, it is possible to write to a 'ro' attribute. So I'd like to suggest the following change: "When an attribute is ro, you may only read the current value of the attribute. However, ro attributes may still be set when constructing a new object."
Current (v 2.2008) documentation says: "... When an attribute is C<ro>, you may only read the current value of the attribute through its accessor. You can, however, set the attribute when creating the object by passing it to the constructor. ..." So I would suggest that this issue can be closed