Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!tdatirv!sarima From: sarima@tdatirv.UUCP (Stanley Friesen) Newsgroups: comp.lang.c++ Subject: Re: Subject: friend operator +(l,r) vs. operator +(r) Message-ID: <71@tdatirv.UUCP> Date: 30 Nov 90 16:28:03 GMT References: <1990Nov21.163422.28250@csc.ti.com> Reply-To: sarima@tdatirv.UUCP (Stanley Friesen) Distribution: usa Organization: Teradata Corp., Irvine Lines: 15 [Well, the mail bounced, so here it is]. In article <11782@hubcap.clemson.edu> you write: >Now, the related question: Is one prefered over the other as a >stylistic point or for any other reason? I would say yes there is. In the absence of any reason NOT to use one, a member function is prefered over a friend. This is because it keeps things more tightly encapsulated. -- --------------- uunet!tdatirv!sarima (Stanley Friesen) Brought to you by Super Global Mega Corp .com