Force write to write to console
Andy Valencia
dont at spam.me
Sun Dec 7 00:46:13 UTC 2025
On Saturday, 6 December 2025 at 23:51:04 UTC, H. S. Teoh wrote:
> write("something");
> stdout.flush;
Of course, if this is debugging or such output which is
orthogonal to the main code's output, stderr is a good choice, as
it's unbuffered.
```d
import std.stdio : stdout;
stderr.write("Hello, world.");
```
(The output comes immediately with the call.)
More information about the Digitalmars-d-learn
mailing list