Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!bellcore!faline!thumper!ulysses!hector!ekrell From: ekrell@hector.UUCP (Eduardo Krell) Newsgroups: comp.lang.c++ Subject: Re: Can we hide the private part of a class ? Keywords: header dependency, efficiency. Message-ID: <10681@ulysses.homer.nj.att.com> Date: 3 Oct 88 00:24:49 GMT References: <1358@stratus> <1988Sep29.044111.16104@utzoo.uucp> <4193@polya.Stanford.EDU> <1368@cumulus> Sender: netnews@ulysses.homer.nj.att.com Reply-To: ekrell@hector.UUCP (Eduardo Krell) Organization: AT&T Bell Laboratories Lines: 12 In article <1368@cumulus> hsu@cumulus.UUCP (Yung-Kao Hsu) writes: >The header dependency simply forces re-compilation of all program >units if some private declarations were changed (which shouldn't cause any >problem to any other classes). You can't really say that. What if something like sizeof() was used? Adding or removing private members from a class may change its size. Eduardo Krell AT&T Bell Laboratories, Murray Hill, NJ UUCP: {att,decvax,ucbvax}!ulysses!ekrell Internet: ekrell@ulysses.att.com