Transitive const sucks
Walter Bright
newshound1 at digitalmars.com
Thu Sep 13 00:07:11 PDT 2007
James Dennett wrote:
> Walter Bright wrote:
>> You cannot paste const on at the top level,
>> it has to be put in at every level underneath it.
>
> I'm not sure what you mean by that. There's not much
> context in which to interpret it.
Try turning a char* into a const char* at the top level of your program
where you don't use const anywhere else. You'll have to add it to every
function that takes that variable as an argument, then recursively add
it to every function that one calls.
More information about the Digitalmars-d
mailing list