Where is stdout?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Aug 4 11:38:28 PDT 2010


>From TDPL, page 161:

import std.conv;

void writeln(T...)(T args)
{
    foreach (arg; args)
    {
        stdout.rawWrite(to!string(arg));
    }
    stdout.rawWrite('\n');
    stdout.flush();
}

void main()
{
    writeln("test");
}

test.d(10): Error: undefined identifier stdout


More information about the Digitalmars-d mailing list