format()

bearophile bearophileHUGS at lycos.com
Sun Jun 12 09:28:21 PDT 2011


Lloyd Dupon:

> Apparently std.string.format() is not implemented / does not compile! :(

This works for me, DMD 2.053:

import std.stdio, std.string;

void main() {
    int x = 10;
    auto s = format("%d", 10);
    writeln(">", s, "<");
}


Bye,
bearophile


More information about the Digitalmars-d-learn mailing list