On Mon, 23 Mar 2015 10:13:54 +
"vfclists ." 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 conventions, stac
On 18 March 2015 at 14:49, vfclists . 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 command line.
>
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 - fpc-pas
On 21 March 2015 at 10:04, Constantine Yannakopoulos
wrote:
> On Fri, Mar 20, 2015 at 11:55 AM, Michael Schnell
> wrote:
>
>> what to to if a function has no parameter and returns a value that is a
>> pointer to a function of exactly this type ?
>
>
> The logical thing for the compiler would be
Am 2015-03-21 um 11:04 schrieb Constantine Yannakopoulos:
PS: I tend to always use the "()" notation when invoking functions with no
arguments so it will be clear to a future reader that I'm invoking a function and not
assigning some variable.
This should be the job of the langugage definiti
On Fri, Mar 20, 2015 at 11:55 AM, Michael Schnell
wrote:
> what to to if a function has no parameter and returns a value that is a
> pointer to a function of exactly this type ?
The logical thing for the compiler would be to assume that the programmer
meant that a reference should be passed.
On 03/18/2015 03:49 PM, vfclists . wrote:
Is passing a function as parameter without the '@' symbol accepted in
Delphi?
Yep.
And to me it looks "nicer than using "@", even though it is obviously
sloppy syntax and introduces an ambiguity (what to to if a function has
no parameter and retu
On Wed, 18 Mar 2015, vfclists . 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 command line.
e.g
funct