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

2015-01-06 Thread Jonas Maebe
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 cour

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

2015-01-06 Thread Marcos Douglas
On Tue, Jan 6, 2015 at 9:15 AM, Jonas Maebe wrote: > > 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

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

2015-01-06 Thread Jonas Maebe
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 Jo

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

2015-01-05 Thread luiz americo pereira camara
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? function TSqlite3JSONObjectResource.Save(IdValue: Variant): Boolean; begin if not VarIsEmpty(IdValue) then begin [..] end