Why can't function expecting immutable arg take mutable input?

Shriramana Sharma via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 16 08:27:30 PDT 2015


Thanks all, for your kind explanations.

Would then constString (for const(char)[]) and inoutString (for inout(char)
[]) be useful aliases if included in the runtime?

-- 
Shriramana Sharma, Penguin #395953


More information about the Digitalmars-d-learn mailing list