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

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


On 06 Jan 2015, at 13:41, Marcos Douglas wrote:

> There you said: "If you don't like that (by design), use the TP or
> Delphi dialects as mentioned before."
> If this "problem" not occurs using delphi dialects, do not you think
> it's better all dialects work as Delphi works? Only in this case, of
> course.

It would break compatibility with a lot of existing code written in  
FPC and ObjFPC modes. This bug/feature has been in FPC dialects since  
more or less the beginning (since before Delphi and its somewhat  
cleaner "result" solution to the same problem existed).

> IMHO this is an inconsistency in the language. Sometimes use "()"  
> sometimes not?

If you want, you can always use () when calling a function.


Jonas



More information about the fpc-devel mailing list