Thread overview
Stderr.writefln
Dec 05, 2006
%u
Dec 05, 2006
Chris Miller
Dec 05, 2006
%u
December 05, 2006
I used to use

    import std.stream;

and

    stderr.writefln( ... );

to log errors. I recently upgraded to v0.175 (from v0.12x), and this now generates reams of errors:

    realtest.d(13): Error: undefined identifier stderr
    realtest.d(13): Error: undefined identifier stderr
    realtest.d(13): Error: no property 'writefln' for type 'int'
    realtest.d(13): Error: function expected before (), not 1 of type int

I've found that importing std.stdio will give me back stderr, but the second two errors persist.
I've tried searching this site for references, but nothing explains the change, or how to retrieve the old functionality?

Thanks, N.
December 05, 2006
import std.cstream;   derr.writefln();
December 05, 2006
Thanks for the quick, correct response.

I actually *had* seen reference to 'derr' in my searches, but it had always appeared tight to the left edge of the screen

derr.something

and I assumed it was 'stderr' that was truncated by this (somewhat bizarre) newsgroup software.