From -54102222699314720
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,ac06fef48c3c04df
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,ac06fef48c3c04df
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1995-02-02 01:13:57 PST
Newsgroups: comp.lang.c++,comp.std.c++
Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!cambridge-news.cygnus.com!news.cygnus.com!news!jason
From: jason@cygnus.com (Jason Merrill)
Subject: Re: friends and local classes
In-Reply-To: Doug Judd's message of 2 Feb 1995 01:04:55 GMT
Content-Type: text/plain; charset=US-ASCII
Message-ID: <JASON.95Feb2011357@phydeaux.cygnus.com>
Sender: news@cygnus.com
Nntp-Posting-Host: phydeaux.cygnus.com
Organization: Cygnus Support, Mountain View, CA
References: <FENSTER.95Jan24182929@ground.cs.columbia.edu> <3g5qc6$16p@news.cc.utah.edu>
	<3g5rei$dl8@news.panix.com> <9502801.16190@mulga.cs.mu.OZ.AU>
	<3glv86$dbg@hpsystem1.informatik.tu-muenchen.de>
	<3gpb3n$nh4@booz.bah.com>
Mime-Version: 1.0
Date: Thu, 2 Feb 1995 09:13:57 GMT
Lines: 13
Xref: nntp.gmd.de comp.lang.c++:88756 comp.std.c++:11302

>>>>> Doug Judd <djudd@ads.com> writes:

> IMO, a well designed engineering application should be made up of
> relatively independent, easily replaceable components with
> well-defined interfaces.  Once class B needs to know about the
> internal workings of class A (even if B is defined within A),
> I feel that it is time to redefine A and B as a single class.

This is an overstatement.  Consider matrices and slices, or strings and
substrings -- in both these cases, the second class is a helper, and has no
real existence independent of the first, but it should be a distinct class.

Jason


