On Monday, September 26, 2011 05:39:16 Andrej Mitrovic wrote: > I'm only asking because I can't use it inside of a pragma(msg) call > since CTFE can't do C-style variadic functions yet. Is `format` > defined this way for performance reasons? (to avoid template bloat?)
Use std.metastrings.Format. As for std.string.format, I believe that Kenji Hara has been working on improving it. I suspect that it is the way that it is, because it was probably a function in D1, and D1 probably doesn't have variadic templates (I don't use D1 though, so I don't know for sure). - Jonathan M Davis