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

Sven Barth pascaldragon at googlemail.com
Tue Feb 2 14:36:25 CET 2016


Am 02.02.2016 13:51 schrieb "Serguei TARASSOV" <serge at arbinada.com>:
>
> On 02/02/2016 13:41, fpc-pascal-request at lists.freepascal.org wrote:
>>
>> Date: Tue, 02 Feb 2016 10:32:28 -0200
>> From: Andreas Berger<Andreas at TheBergerClan.org>
>>
>>
>> On Tue 02/02/2016 09:27, Jonas Maebe wrote:
>>>
>>> >
>>> >The parameter evaluation order issue is irrelevant in this context:
>>> >Delphi guarantees left-to-right (or used to anyway, this may have
>>> >changed), FPC doesn't guarantee anything.
>>> >
>>
>> Wow, what's this? I never knew this. I have been using Borland products
>> since TP 1.0 and for me left-to-right is automatic, I don't even think
>> about it. If FPC doesn't guarantee this my code is full of potential
>> problems.
>
> 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.

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


More information about the fpc-pascal mailing list