[Style] Converting from char[] to string, to!string vs idup

bearophile bearophileHUGS at lycos.com
Tue Mar 25 14:52:35 PDT 2014


Mark Isaacson:

> why use `to!string` instead of just doing `line[2 .. $].idup`?

I sometimes prefer the text function:

  = line[2 .. $].text;

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list