Suggestion for a D project/std module: templated format

Miles _______ at _______.____
Tue Feb 20 15:30:17 PST 2007


Jarrett Billingsley wrote:
> You mean like std.metastrings.Format?  ;) 

Definitely no. Like you figured, std.metastrings.Format doesn't generate
any run-time code. I want something that parses the format string at
compile-time, and just convert and concatenate the arguments at run-time.

Also, std.metastrings.Format only supports %s, so it does no
type-checking and argument counting. If you provide more arguments than
the format string asks for, they are just concatenated like the original
format. This is something that helps bugs to pass unnoticed by the
programmer.

Definitely not what I want.



More information about the Digitalmars-d mailing list