Topic: Proposal: 'protected friend:


Author: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Date: Mon, 20 Feb 1995 16:06:10 GMT
Raw View
clamage@Eng.Sun.COM (Steve Clamage) writes:

>Properly viewed, a friend function is part of the public interface of
>the class, and except for the syntax you use to call it is equivalent to
>a public static member function.

That's not quite true, since a function can be a friend of more than
one class, but it can't be a member of more than one class.

--
Fergus Henderson - fjh@munta.cs.mu.oz.au
all [L] (programming_language(L), L \= "Mercury") => better("Mercury", L) ;-)