Const sucks

Janice Caron caron800 at googlemail.com
Mon Sep 10 12:39:32 PDT 2007


Wow! Well, I'm happy! :-)

I think I'll wait for the documentation before I comment further,
except to mention again this suggestions which I've made elsewhere...

No casting away const except by special syntax.

const(int)*p;
auto q = (int *) p; // Error - p is const



More information about the Digitalmars-d mailing list