<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 25, 2016 at 4:05 AM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><p>Am 25.01.2016 04:42 schrieb "silvioprog" <<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>>:<br>
> What I'm doing wrong? Can I use this callings on FPC in the DELPHI mode?! :-/</p>
</span><p>Neither FPC nor Delphi allow you to declare your own varargs functions. That it works in Delphi is by pure change. Trying to outsmart the compiler will only lead to trouble.</p></blockquote></div><div class="gmail_extra">Indeed [1]. I found some Delphi programmers using this (wrong) calling, eg[2][3]. :-/</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://docwiki.embarcadero.com/RADStudio/Seattle/en/E2277_Only_external_cdecl_functions_may_use_varargs_(Delphi)">http://docwiki.embarcadero.com/RADStudio/Seattle/en/E2277_Only_external_cdecl_functions_may_use_varargs_(Delphi)</a></div><div class="gmail_extra">[2] <a href="http://www.swissdelphicenter.ch/torry/showcode.php?id=2114">http://www.swissdelphicenter.ch/torry/showcode.php?id=2114</a></div><div class="gmail_extra">[3] <a href="http://tobysoft.net/wiki/index.php?Delphi%2F%B2%C4%CA%D1%C4%B9%B0%FA%BF%F4%A1%CAvarargs%A1%CB">http://tobysoft.net/wiki/index.php?Delphi%2F%B2%C4%CA%D1%C4%B9%B0%FA%BF%F4%A1%CAvarargs%A1%CB</a></div><div class="gmail_extra"><br></div>--<br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>