That's something an attribute could very elegantly handle:
my %Mode : Field(rw); # generate accessor + mutator my %Status : Field(ro); # generate only accessor my %Connection : Field; # generate nothing
I'm also thinking it would be nice if one could also write my %Mode : Field(rw custom); which would not create an accessor, but would test for the existence of one and complain if it didn't find one. That way the code becomes self documenting. Maybe a do-nothing private attribute would be nice to that end as well.

Makeshifts last the longest.


In reply to Re^6: Class::InsideOut - yet another riff on inside out objects. by Aristotle
in thread Class::InsideOut - yet another riff on inside out objects. by adrianh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":