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.

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

Reply via email to