DIP53 and DIP49 (ver2) - New definitions for qualified constructors and postblits

Kenji Hara k.hara.pg at gmail.com
Thu Dec 19 05:58:48 PST 2013


2013/12/19 Timon Gehr <timon.gehr at gmx.ch>
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131219/a5f0c7c0/attachment.html>


More information about the Digitalmars-d mailing list