Walter Bright wrote:
On 3/29/2012 5:09 PM, Steven Schveighoffer wrote:
The reason being, if you change anything in class A, you do not have
to worry
about the implementation of getXSquared, because it simply has no
access to the
private implementation. You only have to worry about internal methods,
and
friend functions.

Ok, I see what you're talking about. It has nothing to do with UFCS, it
is D's design decision to not have explicit friends, but to make
everything in a module implicitly a friend.

I think it's far superior to the explicit friend thing in C++.

Just curious. Did you take it from Delphi? :-)

Reply via email to