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

QAston qaston at gmail.com
Wed Dec 18 03:10:08 PST 2013


On Wednesday, 18 December 2013 at 03:42:46 UTC, Kenji Hara wrote:
> http://wiki.dlang.org/DIP53
> Redesign currently implemented qualified constructor concept.
>
> http://wiki.dlang.org/DIP49
> Improved points from version 1:
> - Swap meanings of 'this(this) inout' and 'this(this) const'
> - Inout postblit now covers all cheap (== not rebind 
> indirections) copies between same qualifiers
>
> Kenji Hara

This is awesome, maybe I'll be able to use immutable in my code, 
thanks to this and your bugfixes (opAssign)!

One suggestion though - maybe @unique would be better than const 
for unique postblit/constructor, I think static confusion is an 
important lesson from the past.


More information about the Digitalmars-d mailing list