[comp.lang.c++] Subject: friend operator +

sarima@tdatirv.UUCP (Stanley Friesen) (12/01/90)

[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)