|
|
|
|
|
by DrDimension
3778 days ago
|
|
I'm going to have to pose an educated disagreement. According to the classic C++ article, "What's in a class?" by Herb Sutter (http://www.gotw.ca/publications/mill02.htm) - The Interface Principle suggests - For a class X, all functions, including free functions, that both
(a) "mention" X, and
(b) are "supplied with" X
are logically part of X, because they form part of the interface of X. So yes, f(x) is part of x's interface in C++, and has been considered to be so for a long time. |
|
A little awkward to read in response to my comment.
An educated disagreement to what? I guess you are disagreeing with their argument? I agree with your comment.
Or maybe it's a disagreement with what I think their argument is? This is why I am asking. :)