Re: [fpc-pascal] Mode Delphi and functions as parameters.

2015-03-23 Thread Mattias Gaertner
On Mon, 23 Mar 2015 10:13:54 + vfclists . vfcli...@gmail.com wrote: [...] More questions on Mode Delphi. 1. Does Mode Delphi simply allow Delphi syntax to be compiled, or does it also affect the code generation, like data structures, pointer handling, parameter handling / calling

Re: [fpc-pascal] Mode Delphi and functions as parameters.

2015-03-23 Thread Michael Schnell
On 03/21/2015 11:04 AM, Constantine Yannakopoulos wrote: So no ambiguity, As - other than in C - calling a function without empty parentheses is allowed (and rather common, FWIW), this _is_ an ambiguity. -Michael ___ fpc-pascal maillist -

Re: [fpc-pascal] Portable coroutines

2015-03-23 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 03/20/2015 11:09 PM, Mark Morgan Lloyd wrote: Efficient implementation of coroutines requires CPU-specific code in the RTL and possibly the compiler. However http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html suggests a way that coroutines can be implemented

Re: [fpc-pascal] Portable coroutines

2015-03-23 Thread Michael Schnell
On 03/20/2015 11:09 PM, Mark Morgan Lloyd wrote: Efficient implementation of coroutines requires CPU-specific code in the RTL and possibly the compiler. However http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html suggests a way that coroutines can be implemented in a portable fashion

Re: [fpc-pascal] Mode Delphi and functions as parameters.

2015-03-23 Thread vfclists .
On 18 March 2015 at 14:49, vfclists . vfcli...@gmail.com wrote: I have recently compiled projects which were converted from Delphi and it seems to me that the passing a function as a parameter does not require the '@' symbol. I suspect syntax errors came because I wasn't compiling from the

[fpc-pascal] Helpers for objects (not classes)

2015-03-23 Thread Andrew Haines
Hi, Do the new class helpers support objects? If this is not implemented how much work (1-10) is it to do? Thanks, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Helpers for objects (not classes)

2015-03-23 Thread Sven Barth
On 23.03.2015 21:39, Andrew Haines wrote: Hi, Do the new class helpers support objects? If this is not implemented how much work (1-10) is it to do? No, it's currently not supported, but it wouldn't be that hard to add. In fact that's somewhere on my ToDo list as well as helpers for