Re: Code guidelines, state of C++ compilers used, and general C++ comments


Subject: Re: Code guidelines, state of C++ compilers used, and general C++ comments
From: Leonard Rosenthol (leonardr@lazerware.com)
Date: Mon May 08 2000 - 21:04:58 CDT


At 2:17 AM +0100 5/9/00, Mike Nordell wrote:
>12. Add: Never EVER put a member variable under any other access
>specification than private. Derived classes have NO business of probing
>the baseclass' private parts (pun intended).

        I disagree! There are numerous examples of where protected
member variables are perfectly acceptable and correct. However,
public members are definitely a bad thing!

LDR

-- 
----------------------------------------------------------------------------
                   You've got a SmartFriend in Pennsylvania
----------------------------------------------------------------------------
Leonard Rosenthol      			Internet:       leonardr@lazerware.com
					America Online: MACgician
Web Site: <http://www.lazerware.com/>
FTP Site: <ftp://ftp.lazerware.com/>
PGP Fingerprint: C76E 0497 C459 182D 0C6B  AB6B CA10 B4DF 8067 5E65



This archive was generated by hypermail 2b25 : Mon May 08 2000 - 21:23:06 CDT