compile-time checked format strings

Basile B. b2.temp at gmx.com
Sat Jan 13 19:44:08 UTC 2018


On Saturday, 13 January 2018 at 19:40:09 UTC, Adam D. Ruppe wrote:
> On Saturday, 13 January 2018 at 19:15:49 UTC, kdevel wrote:
>> dmd checks the types but does not count the arguments.
>
> so note that dmd doesn't actually do any checks here - it is 
> all done in library code.
>
> The implementation is amusingly simple:
> https://github.com/dlang/phobos/blob/master/std/format.d#L5803

Yeah there's already an interesting issue about this

https://issues.dlang.org/show_bug.cgi?id=17381




More information about the Digitalmars-d-learn mailing list