Re: [fpc-pascal] Compiler mode for code in rtl and rtl-extra

2020-05-11 Thread Bart via fpc-pascal
On Mon, May 11, 2020 at 9:30 AM Michael Van Canneyt wrote: > You are correct. The unit is compiled in fpc mode, which means no "result" > variable, no out param (replace with var). > > We can envision changing this mode, but then the whole unit needs to be > verified and checked for correct funct

Re: [fpc-pascal] Compiler mode for code in rtl and rtl-extra

2020-05-11 Thread Noel Duffy via fpc-pascal
On 11/05/20 7:29 pm, Michael Van Canneyt wrote: On Mon, 11 May 2020, Noel Duffy via fpc-pascal wrote: Example error messages: sockets.inc(497,5) Error: Identifier not found "Result" sockets.inc(510,53) Fatal: Syntax error, ":" expected but "identifier RES" found for this definition:   fu

Re: [fpc-pascal] Compiler mode for code in rtl and rtl-extra

2020-05-11 Thread Michael Van Canneyt
On Mon, 11 May 2020, Noel Duffy via fpc-pascal wrote: I've been beavering away at a fix for https://bugs.freepascal.org/view.php?id=37013 and I've run into something unexpected. When I try to build rtl-extra with my proposed patch applied, I get compiler errors for things like the use of res

[fpc-pascal] Compiler mode for code in rtl and rtl-extra

2020-05-10 Thread Noel Duffy via fpc-pascal
I've been beavering away at a fix for https://bugs.freepascal.org/view.php?id=37013 and I've run into something unexpected. When I try to build rtl-extra with my proposed patch applied, I get compiler errors for things like the use of result variables and var/out variables. I'm so used to these