From: Joel VanderWerf Date: 2005-12-14T02:21:17+09:00 Subject: Re: Private attribute or accessor? Sam Kong wrote: > In my opinion, if there're accessors (getter and setter), using them in > the class is better than directly accessing the instance data. > However, most codes I've seen access the data directly. > > What do you think? I tend to agree. It's more flexible if you later need to redefine the accessors to do some extra computation or store the value differently. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407