Notes from C++ static analysis

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Jun 27 06:20:36 PDT 2013


On 6/27/13, Adam D. Ruppe <destructionator at gmail.com> wrote:
> I think if there's going to be a new function anyway, it might as
> well be more like the ctFormat bearophile mentioned, and check it
> at compile time.

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.


More information about the Digitalmars-d mailing list