php strings demo
Tomek Sowiński
just at ask.me
Sun Nov 21 05:50:06 PST 2010
Dnia 20-11-2010 o 22:46:33 Kagamin <spam at here.lot> napisał(a):
> See attachment. It's just a thought. Anyone want this in the language?
> ---
> string sval="ab128#d";
> int ival=274;
> static assert("asdf \{sval} astt35 \{ival} zzf \{uuu} g,d" ==
> "asdf ab128#d astt35 274 zzf uuu g,d"); //(uuu not found)
> ---
std.conv.text can do this job just fine, bar the "uuu not found" bit.
--
Tomek
More information about the Digitalmars-d
mailing list