Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Class-Meta CPAN distribution.

Report information
The Basics
Id: 8421
Status: resolved
Priority: 0/
Queue: Class-Meta

People
Owner: Nobody in particular
Requestors: rrwo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.44
Fixed in: 0.20



Subject: Write-Once Read Many (WORM) attribute authz
It would be nice to specify the ability to "write once and read many" (WORM) for a class attribute, since there are times where once an attribute is set, it should not be changed. A simple way to implement it might be to have it not allow writes to an attribute unless it is undefined. (Of course, one could write 'undef' to such an attribute many times, but that is not too likely or common, and if it's documented, then authors could be aware of that.)
Subject: Cancel that
From: rrwo [...] cpan.org
Nevermind. I realized that there is the "once" attribute. [rrwo - Sat Nov 13 18:05:41 2004]: Show quoted text
> It would be nice to specify the ability to "write once and read many" > (WORM) for a class attribute, since there are times where once an > attribute is set, it should not be changed.
You want the "once" parameter, which has been in since 0.20.
Oops, just saw that you saw the "once" parameter. Thanks!