How to cast a int to a string?
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Mar 6 15:20:46 PST 2012
On Wed, Mar 07, 2012 at 12:13:54AM +0100, Chris Pons wrote:
> I'm trying to update a string easily whenever I change a numeric
> component of the string. I've tried to do this so far with no
> result:
[...]
Try this:
import std.conv;
...
int i = 1234;
string s = to!string(i);
T
--
Recently, our IT department hired a bug-fix engineer. He used to work for Volkswagen.
More information about the Digitalmars-d-learn
mailing list