[Issue 447] frontend: writeable string constants

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 25 18:48:19 PDT 2006


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





------- Comment #2 from bugzilla at digitalmars.com  2006-10-25 20:48 -------
The C++ standard allows implicit conversion from string literals to char*, so
DMD's usage of it is compliant code.

What this would be a move towards is making the DMD source const-correct. Going
halfway towards it is where the const_cast thing comes in, and that's not any
better than relying on the literal => char* being allowed. Const correctness
needs to be done either full bore or not at all. I'm not willing to convert it
all to be const-correct, because it's ugly, a lot of work, and I'm pretty sure
would not find a single problem.


-- 




More information about the Digitalmars-d-bugs mailing list