char[] to string
bearophile
bearophileHUGS at lycos.com
Sat Jun 11 05:12:51 PDT 2011
Jonathan M Davis:
> Even better though, would be to use std.conv.to - e.g. to!string(input). This will
> convert input to a string, but it has the advantage that if input is already a
> string, then it'll just return the string rather than making another copy like
> idup would.
I didn't know this. Isn't it very good to give this bit of intelligence to idup too?
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list