Creating std.format.format warpper
novice2
sorryno at em.ail
Sat May 1 09:10:09 UTC 2021
Hello.
Can please anybody help me create template format2 like
std.format.format,
so it can access to format string (change it for example)
then instantiate std.format.format template in
compile-time-checkable way
format!"%d %s"(arg1, arg2)
so compiler can check format string vs arguments count at least.
i.e. if i would write
format2!"%d %s"(arg1)
i should give comile time error
and next difficulties, i want format2 have extra parameter (say
"prefix"), not passed to std.format.format
for example, format2 should prepent prefix to format string then
instantiate std.format.format
any advices
thanks
More information about the Digitalmars-d-learn
mailing list