Am 02.02.2016 15:39 schrieb "Serguei TARASSOV" <se...@arbinada.com>:
>
> On 02/02/2016 15:16, fpc-pascal-requ...@lists.freepascal.org wrote:
>>
>> Date: Tue, 2 Feb 2016 14:36:25 +0100
>> From: Sven Barth<pascaldra...@googlemail.com>
>>
>>
>>> >
>>> >You confuse left-to-right operator's precedence with function
arguments evaluation
>>> .
>>
>> No, he does not. Delphi and TP indeed guarantee an evaluation(!) from
left
>> to right.
>
> For expressions it is clearly documented.
> Is it documented for functions calling? I never saw such conventions.
> It may be a side effect of parsing but not a standard.
> Taking into account a calling convention, the more natural way is to
evaluate the arguments accordingly the order in which they are passed to
the routine.

I just checked. Up until XE2 it's documented regarding evaluation order for
register and pascal calling convention (the others are undefined with
exception of passing order), for XE3 it's only passing order for the two
and from XE4 on it's even don't care for the passing order... :/
If you want I can provide you the link later on.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to