Notes from C++ static analysis
Peter Williams
pwil3058 at bigpond.net.au
Thu Jun 27 17:34:27 PDT 2013
On 27/06/13 23:33, bearophile wrote:
> 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.
In internationalized/localized code the string is highly likely to be
determined at run time.
Peter
More information about the Digitalmars-d
mailing list