string is rarely useful as a function argument

Timon Gehr timon.gehr at gmx.ch
Wed Dec 28 11:47:01 PST 2011


On 12/28/2011 08:30 PM, Andrei Alexandrescu wrote:
> On 12/28/11 1:18 PM, foobar wrote:
>> That's a good idea which I wonder about its implementation strategy.
>
> Implementation would entail a change in the compiler.
>
> Andrei

Special casing char[] and wchar[] in the language would be extremely 
ugly and inconsistent and would break nearly every D program. And for 
me, it would cripple Ds strings quite a lot. Why do you think it is 
worthwhile?


More information about the Digitalmars-d mailing list