>>>>> "EP" == Erik Price <[EMAIL PROTECTED]> writes:
EP> On Thursday, September 12, 2002, at 11:45 AM, Drew Taylor wrote: >> I have always operated under the assumption that within a >> module/object it's OK to access members directly. Outside the module >> I always use accessors/mutators. What do others think? EP> Unless there's a coding standard, isn't it personal preference? as i clarified to steve, that line was within the class. and it is very legal IMNSHO to access attributes directly from within a class. how do you think accessors do it? :) now, direct access from outside the class is another matter and should only be done with accessor methods. that allows for changes inside without the outside breaking as well as safer accessing (errors on stuff you don't want allowed to be accessible. that is called encapsulation. uri -- Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com ----- Stem and Perl Development, Systems Architecture, Design and Coding ---- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm