[fpc-devel] Compiler bug?

cobines cobines at gmail.com
Sun Jan 31 09:23:53 CET 2010


2010/1/31 Paul van Helden <paul at planetgis.co.za>:
> But it is things like this that trip up people coming from Delphi, I guess.
> Isn't this a potential improvement to the compiler though: scan for
> overloaded functions before assuming that it is the result value (like
> Delphi does)? (Or warn about overloaded functions without parameters,
> similar to mode objfpc disallowing parameter names that are the same as
> methods?)

Just checked that if you use {$mode delphi} instead of {$mode objfpc}
then using:

Result:=GetValue_overloaded;

is correct.

--
cobines



More information about the fpc-devel mailing list