Notes from C++ static analysis

bearophile bearophileHUGS at lycos.com
Thu Jun 27 06:33:51 PDT 2013


Andrej Mitrovic:

> Yeah but it's not always possible to know what the formatting 
> string
> is. For example, maybe you have an enum array of format strings 
> but a
> runtime index into this array which you pass to format at 
> runtime.
> I've ported C samples before that used this style of formatting.

In some cases the format string is computed at run-time, so it 
can't be a template argument. A ctWritefln is for the other cases.

Bye,
bearophile


More information about the Digitalmars-d mailing list