Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!news From: schwartz@groucho.cs.psu.edu (Scott Schwartz) Newsgroups: comp.lang.c++ Subject: Re: Public vs Private header files in C++ Message-ID: <5tdHm72m@cs.psu.edu> Date: 3 Jun 91 20:23:49 GMT References: <5243@servax0.essex.ac.uk> <1991Jun3.182909.21539@agate.berkeley.edu> Sender: news@cs.psu.edu (Usenet) Organization: penn state university, computer science Lines: 13 In-Reply-To: jbuck@forney.berkeley.edu's message of 3 Jun 91 18: 29:09 GMT Nntp-Posting-Host: groucho.cs.psu.edu jbuck@forney.berkeley.edu (Joe Buck) writes: Stroustrup said something about this: the member access system is designed to protect against accidents, not maliciousness. An then on page 253 gives an example of language features designed to prevent maliciousness (noninheritance of friendship), using an example named "class Spy". Someone determined to defeat the type system wouldn't find it much harder to do with Modula-2. That's no excuse for encouraging it.