<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Hairy Pixels via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Sa., 14. Juni 2025, 18:20:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_quote">
    <div dir="ltr" class="gmail_attr">On Jun 14, 2025 at 10:50:46 PM, Martin Frb via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-devel@lists.freepascal.org</a>> wrote:<br></div>
    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
        <div dir="ltr">I may... Need to find some time.<br><br>Also, what do you think about overloading AssertEquals (and the like) taking<br>AssertEqual(<br>   const AnFormatString: string;<br>   const AFormatData: array of const;<br>   AnExpect,<br>   AnActual: TFoo<br>)<br>?</div></blockquote></div><div dir="ltr"><br></div><div dir="ltr">Curious, if the function was actually inline wouldn’t the condition be tripped and exit before calling the format call which was passed in? FPC often fails to inline for various reason so if it can’t I agree your solution makes sense.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If the compiler would indeed inline in this case, then yes, the Format call would be skipped. However open arrays are currently not supported for inlining. </div><div dir="auto"><br></div><div dir="auto">But even without inlining this is simply more convenient for a user (I often have such formatting related overloads in my own code as well). </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>