Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!mtunx!mtune!codas!ateng!chip From: chip@ateng.UUCP (Chip Salzenberg) Newsgroups: comp.lang.c++ Subject: Re: Critique of Wiener/Pinson Message-ID: <247@ateng.UUCP> Date: 22 Apr 88 15:14:16 GMT References: <8063@apple.Apple.Com> <6590037@hplsla.HP.COM> Reply-To: chip@ateng.UUCP (Chip Salzenberg) Organization: A T Engineering, Tampa, FL Lines: 18 In article <6590037@hplsla.HP.COM> jima@hplsla.HP.COM (Jim Adcock) writes: >I don't buy the idea that instance variables of an object must always >be accessed via an access method. I think there are good cases for >violating this "rule". Sometimes. Maybe. But when it's debugging time, It's _so_ easy to insert: cerr << "I'm being changed!\n"; into the modification function. >[If in doubt, use access functions] Amen. -- Chip Salzenberg "chip@ateng.UU.NET" or "codas!ateng!chip" A T Engineering My employer may or may not agree with me. "I must create a system or be enslaved by another man's." -- Blake