digitalmars.D.learn - changing the output of `std.stdio.write'
- Manfred Nowak (7/7) Jan 03 2019 According to this tutorial
- Paul Backus (3/10) Jan 03 2019 According to the page you linked, functions that don't take any
- Manfred Nowak (3/4) Jan 03 2019 thx. I should have rtfm instead of looking for an example.
According to this tutorial https://wiki.dlang.org/Defining_custom_print_format_specifiers it seems easy to change the format of the output for `std.stdio.writef'. But why is there no example for changing the output when there are no format specifiers? -manfred
Jan 03 2019
On Thursday, 3 January 2019 at 17:59:28 UTC, Manfred Nowak wrote:According to this tutorial https://wiki.dlang.org/Defining_custom_print_format_specifiers it seems easy to change the format of the output for `std.stdio.writef'. But why is there no example for changing the output when there are no format specifiers? -manfredAccording to the page you linked, functions that don't take any format specifiers, like `write` and `writeln`, default to `%s`.
Jan 03 2019
On Thursday, 3 January 2019 at 18:11:43 UTC, Paul Backus wrote:[...] functions [...] default to `%s`.thx. I should have rtfm instead of looking for an example. -manfred
Jan 03 2019