2013/12/19 Timon Gehr <[email protected]> > > Well, a constructor can be thought of as yielding a result. A const method > returning 'this' cannot return an 'immutable' object.
Constructor has no return value in semantic level. > I do understand your rationale. What I am saying is that the DIP adds a > wildcard meaning to 'const' that was not previously there, and I consider > this to be more of a weakness than a strength. > What is the weakness? As far as I can see, there is no *logical* failure. Indeed I can agree that the described concept in the DIP may be hard to understand, but it would be enough easy compared with the currently implemented thing. Kenji Hara
