quote:
Do you use the accessors to get private variables even inside private methods, or do you refer to the variables directly when going "deeper" into the implementation of the classes?
I think that would qualify as neurotic (class) behavior. You can get yourself into a situation where you need to use the public accessors if they invoke requesite side-effects (e.g. lazy evaluation). If the class that the data belongs too isn't even suppose to directly access it, maybe it shouldn't be part of that class, but another one?
In debug builds, accessors do have overhead - so if you use them on a very low-level in complex algorithms, you can impact the performance to the extent that you are unable to effectively run the program in a debug build (say you used them inside of an FFT algorithm and then called it continuously). Usually it's not a problem.
[edited by - Magmai Kai Holmlor on June 26, 2002 11:50:03 PM]