in reply to Naming convention for Object Variables
The best thing to do is create a accessor and mutator method (or one combined method as seen often in Perl modules) for each of your properties. Users of your objects can only use these to access the property, then you're able to name them whatever you like.
Using a module to automate this is highly recommended. I'm partial to Class::Accessor just because it's focused and simple, but Class::MethodMaker does this and much more. If you'd like to learn, do it yourself using AUTOLOAD :-)
Chris
M-x auto-bs-mode
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Naming convention for Object Variables
by Abigail-II (Bishop) on Aug 13, 2002 at 13:59 UTC | |
by lachoy (Parson) on Aug 13, 2002 at 15:54 UTC |
In Section
Seekers of Perl Wisdom