GUI and non-GUI stream usage?

Bill Baxter dnewsgroup at billbaxter.com
Sat Nov 17 14:35:38 PST 2007


It seems all the dout, derr streams defined in std.cstream throw 
exceptions if they're unable to write their output.

I find that unexpected and quite annoying.  From my experience such IO 
stream classes for dealing with console IO always just ignore writes if 
there is no console attached.

Is there a good reason for it to behave the way it does?  Or should I 
file a bug on it?

(And Tango folks -- does Stdout in Tango throw exceptions when there's 
no console?)

--bb


More information about the Digitalmars-d-learn mailing list