DIP9 -- Redo toString API

Pelle Månsson pelle.mansson at gmail.com
Sun Nov 21 14:07:33 PST 2010


On 11/21/2010 09:37 PM, Jacob Carlborg wrote:
>> Inside to!string, it would be something like this:
>>
>> string s;
>> arg.writeTo((const(char)[] data) { s ~= data; });
>> return s;
>
> Why can't toString do the same ?

Because then you'd have to write it? I'm afraid I don't understand.


More information about the Digitalmars-d mailing list