[fpc-pascal] Argument evaluation order in Free Pascal and Delphi

Sven Barth pascaldragon at googlemail.com
Tue Oct 29 09:34:06 CET 2013


Am 29.10.2013 08:35 schrieb "Michael Van Canneyt" <michael at freepascal.org>:
>
>
>
> On Mon, 28 Oct 2013, Dmitry Pribysh wrote:
>
>> Hi,
>>
>> As it is written in Free Pascal wiki, order of parameter evaluation is
not defined in FPC, but it is defined in Delphi (Delphi
>> guarantees left-to-right evaluation order).
>
>
> Strange. Where is that documented ?

We document it ourselves here:
http://wiki.freepascal.org/Code_Conversion_Guide#Order_of_parameter_evaluation
The Delphi documentation is however rather vague:
http://docwiki.embarcadero.com/RADStudio/XE5/en/Procedures_and_Functions#Calling_Conventions

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131029/43fda029/attachment.html>


More information about the fpc-pascal mailing list