Subject: | once and default attribute flags cause confusion |
I build a small set of classes that happily worked together till I
decided to upgrade to version 0.62 of Class::Meta (used to be on
Class::Meta 0.53)
The reason these clases all failed was because they where not set which
is well strange but ok fair enough I added a default value to all
attributes (not undef though that results in the same problem) and the
classes where happy again.
A second problem I had was with the once flag, in 0.53 I was able to
define an attribute as being settable only once, then as soon as I set
it I was unable to alter it's value which is what I expected to happen.
Now in 0.62 I have to assign a value to the attribute when declaring
it, any later and I get the told that the value must be defined.
I am not sure if these things are bugs or desired behaviour from the
authors point of view but at least to me both changes make very little
sense.