Is this statement in http://dlang.org/dmd-windows.html still true?

Bernard Helyer b.helyer at gmail.com
Mon Jun 25 18:04:17 PDT 2012


It's out of date.

> Or is this statement there to want you not take the address of 
> a string literal and attempt to write it via a pointer?

Even then you have to actively try and break the type system

     auto p = cast(char*) "foo".ptr;

And if you remove the brakes from your car, you shouldn't be
terribly confused when you plow into a wall at 100 km/h. The
statement should probably be removed or modified.


More information about the Digitalmars-d mailing list