my %Mode : Field(rw); # generate accessor + mutator my %Status : Field(ro); # generate only accessor my %Connection : Field; # generate nothing
Like this a lot.
my %Mode : Field(rw custom);
I'd probably avoid this since it's not something that you can guarantee. You could have an accessor/mutator - but with a different name. You could also have a method that wasn't an accessor/mutator with the same name. In either case the "custom" documentation would end up being inaccurate.
In reply to Re^7: Class::InsideOut - yet another riff on inside out objects.
by adrianh
in thread Class::InsideOut - yet another riff on inside out objects.
by adrianh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |