Re: [fpc-devel] Evaluation order in expressions

2019-07-30 Thread Ondrej Pokorny
On 30.07.2019 09:46, Michael Van Canneyt wrote: I think they updated the documentation meanwhile: http://docwiki.embarcadero.com/RADStudio/Rio/en/Procedures_and_Functions_(Delphi)#Calling_Conventions So you can see it depends on the calling convention. Thanks, I wasn't aware of it! Ondrej

Re: [fpc-devel] Evaluation order in expressions

2019-07-30 Thread Michael Van Canneyt
On Tue, 30 Jul 2019, Ondrej Pokorny wrote: On 30.07.2019 08:55, Jonas Maebe wrote: Delphi evaluates e.g. all parameters to subroutine calls from left to right, which FPC does not guarantee. If I am not mistaken Delphi doesn't guarantee this either. I remember I "learned it by doing" quite

Re: [fpc-devel] Evaluation order in expressions

2019-07-30 Thread Ondrej Pokorny
On 30.07.2019 08:55, Jonas Maebe wrote: Delphi evaluates e.g. all parameters to subroutine calls from left to right, which FPC does not guarantee. If I am not mistaken Delphi doesn't guarantee this either. I remember I "learned it by doing" quite some time ago and I don't think I used FPC at

Re: [fpc-devel] Evaluation order in expressions

2019-07-30 Thread Jonas Maebe
On 2019-07-30 08:23, Ondrej Pokorny wrote: can somebody comment on the Remark from https://www.freepascal.org/docs-html/ref/refch12.html ? _Remark: The order in which expressions of the same precedence are evaluated is not guaranteed to be left-to-right._ Is this valid for boolean expressions

Re: [fpc-devel] Evaluation order in expressions

2019-07-29 Thread Michael Van Canneyt
On Tue, 30 Jul 2019, Ondrej Pokorny wrote: On 30.07.2019 08:33, Michael Van Canneyt wrote: The documentation has already been fixed in this regard, there was a bugreport about it not so long ago. Great, thank you. Is there some online version of the latest documentation trunk (nightly buil

Re: [fpc-devel] Evaluation order in expressions

2019-07-29 Thread Ondrej Pokorny
On 30.07.2019 08:33, Michael Van Canneyt wrote: The documentation has already been fixed in this regard, there was a bugreport about it not so long ago. Great, thank you. Is there some online version of the latest documentation trunk (nightly build)? Ondrej _

Re: [fpc-devel] Evaluation order in expressions

2019-07-29 Thread Michael Van Canneyt
On Tue, 30 Jul 2019, Ondrej Pokorny wrote: On 30.07.2019 08:23, Ondrej Pokorny wrote: /Remark: The order in which expressions of the same precedence are evaluated is not guaranteed to be left-to-right./ Is this valid for boolean expressions, too? I use the following construct with {$BOOLEV

Re: [fpc-devel] Evaluation order in expressions

2019-07-29 Thread Ondrej Pokorny
On 30.07.2019 08:23, Ondrej Pokorny wrote: /Remark: The order in which expressions of the same precedence are evaluated is not guaranteed to be left-to-right./ Is this valid for boolean expressions, too? I use the following construct with {$BOOLEVAL OFF}: Result := Assigned(MyObject) and (MyO

[fpc-devel] Evaluation order in expressions

2019-07-29 Thread Ondrej Pokorny
Hello, can somebody comment on the Remark from https://www.freepascal.org/docs-html/ref/refch12.html ? /Remark: The order in which expressions of the same precedence are evaluated is not guaranteed to be left-to-right./ Is this valid for boolean expressions, too? I use the following construc