<div>Hi,</div><div>š</div><div>As it is written in Free Pascal <a href="http://wiki.freepascal.org/Code_Conversion_Guide#Order_of_parameter_evaluation">wiki</a>, order of parameter evaluation is not defined in FPC, but it is defined in Delphi (Delphi guarantees left-to-right evaluation order).</div><div>However, when i compile my program with FPC in Delphi-mode (-Mdeplhi), arguments in function calls are evaluated in right-to-left order). And when i compile my program in ObjectFPC-mode (-Mobjfpc), i get the same behaviour.</div><div>I tested it on the following platforms (all got the same right-to-left evaluation order):</div><div>- ArchLinux x86_64, FPC 2.6.2.</div><div>- Archlinux i686, FPC 2.6.2</div><div>- Raspbian (Debian for Raspberry Pi) armhf, FPC 2.6.2.</div><div>š</div><div>So, is this a compatibility bug in FPC or i just got something wrong? And is there any way to force left-to-right parameter evalution order?</div><div>š</div><div><div>P.S. Minimal working example for testing parameter evaluation is attached to this email.</div></div>