|CC:||ingy [...] cpan.org|
|Subject:||Readonly::Scalar() doesn't allow blessing, but Readonly() does|
There's an inconsistency between Readonly() and Readonly::Scalar(). The attached test illustrates the problem. A scalar made readonly with Readonly() can be blessed. One by Readonly::Scalar() cannot. I don't know which is the correct behavior, but the two should behave the same. Readonly.pm always allows reblessing. boolean 0.24 revealed this bug.
Message body not shown because it is not plain text.