<div dir="ltr"><div>Hello,</div><div><br></div><div>The problem seems more related to Delphi, but I want to understand why it compiles only in FPC.</div><div><br></div><div>The declaration is just:</div><div><br></div><div>=== begin code ===</div><div>var</div><div> FmtStr: function(const fmt: PAnsiChar): PAnsiChar; cdecl; varargs;</div><div>=== end code ===</div><div><br></div><div>And the full console project to test it in attachment.</div><div><br></div><div>It compiles only in FPC, in Delphi I got:</div><div><div><br></div><div>E2029 ',' or ':' expected but ';' found</div></div><div><br></div><div>Why? I don't know if it's a bug in Delphi or a breach in FPC.</div><div><br></div><div>ps. it compiles fine in FPC even using `$mode delphi`.</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>