writef / writefln and stderr

Derek Parnell derek at psych.ward
Thu Jul 20 07:11:31 PDT 2006


On Thu, 20 Jul 2006 23:30:26 +1000, DYH <DYH_member at pathlink.com> wrote:

> Consider this small sample:
>
>> import std.stdio;
>>
>> int main(char[][] args)
>> {
>> 	writefln(stderr, "test");
>> 	return 0;
>> }
>
> will output something like:
>>> 4164D0test
>
> Is that correct behaviour?
>

Yes.

If you want to write to stderr, use this instead...

   import std.cstream;
   derr.writefln("test");


-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d-bugs mailing list