digitalmars.D.announce - Type-safer usage of diagnostics outputting in dmd
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (14/14) Sep 01 2020 The diagnostics functions in `dmd.errors` are now qualified [1]
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (2/3) Sep 01 2020 The host compiler supports it (from dmd version 2.092), that is.
- MoonlightSentinel (3/4) Sep 01 2020 To be precise, it will issue a deprecation. E.g.
The diagnostics functions in `dmd.errors` are now qualified [1] with the, by Walter, recently added pragma(printf) when the compiler supports it (from dmd version 2.092 and upwards). In other words, a mismatch between the format part and the argument part in a call to either of - error(const ref Loc loc, const(char)* format, ...) - warning(const ref Loc loc, const(char)* format, ...) - message(const ref Loc loc, const(char)* format, ...) - deprecation(const ref Loc loc, const(char)* format, ...) - ... will now issue a warning. [1] https://github.com/dlang/dmd/pull/11638
Sep 01 2020
On Tuesday, 1 September 2020 at 22:14:11 UTC, Per Nordlöw wrote:when the compiler supports it (from dmd version 2.092 andThe host compiler supports it (from dmd version 2.092), that is.
Sep 01 2020
On Tuesday, 1 September 2020 at 22:14:11 UTC, Per Nordlöw wrote:will now issue a warning.To be precise, it will issue a deprecation. E.g. Deprecation: more format specifiers than 0 arguments
Sep 01 2020