<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 13 August 2017 at 00:15, Stefan Koch via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Saturday, 12 August 2017 at 13:19:12 UTC, ixid wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Saturday, 12 August 2017 at 11:47:10 UTC, Stefan Koch wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Whereas the following alternative takes 20 ms :<br>
{<br>
    import ctfe_utils;<br>
    pragma(msg, format_jai("Hello % % % % % % % % %", " I ", " just", " have" , " to", " concat", " a lot", " of", " strings ...", 9));<br>
}<br>
<br>
see for yourself:<br>
<a href="https://www.youtube.com/watch?v=T0BJxdt61RY" rel="noreferrer" target="_blank">https://www.youtube.com/watch?<wbr>v=T0BJxdt61RY</a><br>
</blockquote>
<br>
Could we not improve the syntax to something like:<br>
<br>
     pragma(msg, format_jai("Hello %9", " I ", "<br>
 just", " have" , " to", " concat", " a lot", " of", " strings<br>
 ..."));<br>
 }<br>
<br>
Or whatever is closest that doesn't step on the current print syntax.<br>
</blockquote>
<br></div></div>
The point of format is that you want to replace the % my the argument and then write more static text.<br>
<br>
"The Parameter '%' was null and it should not be"<br>
"Rule '%' was not found in catalog '%' is possible the closest match"<br></blockquote><div><br></div><div>If you're keen to introduce a new function, I'd strongly suggest changing to {1} {2} {3}, or %1 %2 %3, format/printf functions where you don't supply the place index are useless a lot of the time and need to be rewritten, which is a tedious task.</div></div></div></div>