October 14, 2016 [Issue 4927] writefln silently ignores arguments not present in the format string | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=4927 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |bootcamp -- |
January 09, 2021 [Issue 4927] writefln silently ignores arguments not present in the format string | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=4927 Mathias LANG <pro.mathias.lang@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |pro.mathias.lang@gmail.com Resolution|--- |FIXED --- Comment #7 from Mathias LANG <pro.mathias.lang@gmail.com> --- As mentioned, the issue in the original message was per spec. However, the part with positional argument was not, and has since been fixed: ```D import std.stdio; void main() { writefln("A%2$s B%1$s", 10); } ``` This correctly errors out now. -- |
Copyright © 1999-2021 by the D Language Foundation