
21 Oct
2009
21 Oct
'09
8:52 p.m.
Stewart, Robert wrote:
. This means that it can't be used in a chain of assignment operations like A.X(B.X(5)) which incidentally looks awful compared to A.X = B.X = 5.
A.X() = B.X() = 5 isn't horrible, but A.X = B.X = 5 is what one expects when one thinks of "properties."
A.X() and B.X() are the getters, not the setters, although I appreciate that they could return non-const references so they could be used like you wrote. But even these semantics do not conform with Stefan's notion of de facto "standard C++ properties." -Matt