[fpc-devel] Ambiguity between function result and overloaded function

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jan 6 13:15:10 CET 2015


On 05 Jan 2015, at 21:20, luiz americo pereira camara wrote:

> I have the following methods.
>
> I was expecting that Result := Save; would call Save method but in  
> fact
> Save refers to the function result variable.
>
> Is it by design?

Yes. See e.g. http://bugs.freepascal.org/view.php?id=22344


Jonas



More information about the fpc-devel mailing list