view tests/mini/phobos/strings2.d @ 583:12bda38ea366

Fixed choosing default target machine without needing to link in targets.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 07 Sep 2008 17:44:25 -0700
parents ba7f06832d1c
children
line wrap: on
line source

module strings2;

import std.string;
import std.stdio;

void main()
{
    int i = 32;
    auto str = format(i);
    writefln(str);

    long l = 123123;
    str = format(l);
    writefln(str);
}