Accidentally killing immutable is too easy in D (Was: cast()x - a valid expression?)

Jesse Phillips jessekphillips+D at gmail.com
Wed Jun 1 21:59:50 PDT 2011


Nick Sabalausky Wrote:

> Of course, you can probably use some fancy helper templates to make sure you 
> preserve all modifiers. But needing to do so is just asking for mistakes: it 
> seems like a huge violation of "make the right way easy, and the wrong way 
> hard".

Relevant: http://d.puremagic.com/issues/show_bug.cgi?id=5307

Using to!() should not allow removal of qualifiers


More information about the Digitalmars-d mailing list