write not buffered with custom configuration

H. S. Teoh hsteoh at qfbox.info
Sat Feb 28 16:43:27 UTC 2026


On Sat, Feb 28, 2026 at 11:04:39AM +0000, Brother Bill via Digitalmars-d-learn wrote:
> I used Copilot to finally get VSCode to debug D apps on both Windows
> and Linux.
> This version is for Windows.
> 
> I noticed that write("Foo"); is eager like writeln(), and doesn't need
> stdout.flush() to display on the console.

In general, stderr is unbuffered, whereas stdout is buffered.

Of course, your specific situation may be dependent on OS defaults as
well.


T

-- 
Creativity is not an excuse for sloppiness.


More information about the Digitalmars-d-learn mailing list