Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-31 Thread Sven Barth
Am 31.10.2013 09:45, schrieb Michael Schnell: On 10/28/2013 02:47 PM, Dmitry Pribysh wrote: As it is written in Free Pascal wiki , order of parameter evaluation is not defined in FPC, but it is defined in Delphi (D

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-31 Thread Michael Schnell
On 10/28/2013 02:47 PM, Dmitry Pribysh wrote: As it is written in Free Pascal wiki , order of parameter evaluation is not defined in FPC, but it is defined in Delphi (Delphi guarantees left-to-right evaluation order

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-29 Thread Jonas Maebe
On 29 Oct 2013, at 14:35, Michael Van Canneyt wrote: On Tue, 29 Oct 2013, Jonas Maebe wrote: I think they use "evaluation order" as a synonym for "parameter passing order" on that page, given the table below: it says that the order in which the parameters are passed for register/pascal i

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-29 Thread Michael Van Canneyt
On Tue, 29 Oct 2013, Jonas Maebe wrote: On 29 Oct 2013, at 09:44, Michael Van Canneyt wrote: On Tue, 29 Oct 2013, Sven Barth wrote: The Delphi documentation is however rather vague: http://docwiki.embarcadero.com/RADStudio/XE5/en/Procedures_and_Functions#Calling_Conventions I know this,

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-29 Thread Jonas Maebe
On 29 Oct 2013, at 09:44, Michael Van Canneyt wrote: On Tue, 29 Oct 2013, Sven Barth wrote: The Delphi documentation is however rather vague: http://docwiki.embarcadero.com/RADStudio/XE5/en/Procedures_and_Functions#Calling_Conventions I know this, and it says explicitly "For the register a

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-29 Thread Michael Van Canneyt
On Tue, 29 Oct 2013, Sven Barth wrote: Am 29.10.2013 08:35 schrieb "Michael Van Canneyt" : > > > > On Mon, 28 Oct 2013, Dmitry Pribysh wrote: > >> Hi, >>   >> As it is written in Free Pascal wiki, order of parameter evaluation is not defined in FPC, but it is defined in Delphi (Delphi >> gu

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-29 Thread Jonas Maebe
On 29 Oct 2013, at 08:35, Michael Van Canneyt wrote: > On Mon, 28 Oct 2013, Dmitry Pribysh wrote: > >> As it is written in Free Pascal wiki, order of parameter evaluation is not >> defined in FPC, but it is defined in Delphi (Delphi >> guarantees left-to-right evaluation order). > > Strange.

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-29 Thread Sven Barth
Am 29.10.2013 08:35 schrieb "Michael Van Canneyt" : > > > > On Mon, 28 Oct 2013, Dmitry Pribysh wrote: > >> Hi, >> >> As it is written in Free Pascal wiki, order of parameter evaluation is not defined in FPC, but it is defined in Delphi (Delphi >> guarantees left-to-right evaluation order). > > > S

Re: [fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-29 Thread Michael Van Canneyt
On Mon, 28 Oct 2013, Dmitry Pribysh wrote: Hi,   As it is written in Free Pascal wiki, order of parameter evaluation is not defined in FPC, but it is defined in Delphi (Delphi guarantees left-to-right evaluation order). Strange. Where is that documented ? Michael.__

[fpc-pascal] Argument evaluation order in Free Pascal and Delphi

2013-10-28 Thread Dmitry Pribysh
Hi, As it is written in Free Pascal wiki, order of parameter evaluation is not defined in FPC, but it is defined in Delphi (Delphi guarantees left-to-right evaluation order).However, when i compile my program with FPC in Delphi-mode (-Mdeplhi), arguments in function calls are evaluated in right-to-