Two possibilities of fixing format problem, which is better?
rikki at cattermole.co.nz
Sun Oct 20 23:15:28 UTC 2019
On 21/10/2019 6:55 AM, berni44 wrote:
> This post is ab out issue 9592 , namely, that format does ignore the
> width parameter and the minus flag for some types and for some not
> (numbers, bool, strings). According to the documentation width is used
> always and the minus flag only for numbers.
> Now I see two ways to fix this:
> a) Correct the documentation.
> b) Correct the code (in this case I'd change the documentation of the
> minus flag to include non-number types too).
> What do you think is better?
>  https://issues.dlang.org/show_bug.cgi?id=9592
>  https://dlang.org/phobos/std_format.html#.formattedWrite
What does printf do?
That is your baseline.
More information about the Digitalmars-d