in reply to Re^6: Class::InsideOut - yet another riff on inside out objects.
in thread Class::InsideOut - yet another riff on inside out objects.
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Class::InsideOut - yet another riff on inside out objects.
by Aristotle (Chancellor) on Dec 21, 2002 at 20:27 UTC | |
|
Re^8: Class::InsideOut - yet another riff on inside out objects.
by Aristotle (Chancellor) on Dec 22, 2002 at 01:31 UTC | |
by adrianh (Chancellor) on Dec 22, 2002 at 11:17 UTC | |
by Aristotle (Chancellor) on Dec 22, 2002 at 11:32 UTC |