2010/1/31 Paul van Helden <p...@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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel