[fpc-pascal] New feature: IfThen() intrinsic

Serguei TARASSOV serge at arbinada.com
Tue Feb 2 15:39:52 CET 2016


On 02/02/2016 15:16, fpc-pascal-request at lists.freepascal.org wrote:
> Date: Tue, 2 Feb 2016 14:36:25 +0100
> From: Sven Barth<pascaldragon at 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



More information about the fpc-pascal mailing list