[fpc-pascal] Parameter evaluation order
Andreas Berger
Andreas at TheBergerClan.org
Tue Feb 2 13:57:41 CET 2016
On Tue 02/02/2016 10:41, Jonas Maebe wrote:
>
> Andreas Berger wrote on Tue, 02 Feb 2016:
>
>> 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.
>
> It also may have problems when compiling with the Delphi "NextGen"
> compiler: http://stackoverflow.com/a/11010685
>
Like Graeme said "I guess I have been lucky"! I have all printed
documentation for the versions I bought from TP1 to Delphi 7, and it was
always guaranteed. This sucks!!!
Andreas
More information about the fpc-pascal
mailing list