In our previous episode, Micha Nelissen said: > > There are an immense amount of similar examples possible (and if you add > > operator overloading in the mix, it increases exponentially), and you'd > > get a huge amount of "can't decide which overloaded function to call" > > errors even if the compiler were hacked to take the use of the function > > results into account. > > Let the programmer define a scoring function (to be called by the > compiler when it has multiple options) that takes two functions and > decides which combination is most efficient or whatever ;-).
Yes, that is how script languages solve it. However in anything designed for larger programs, this is less usefull, since only one error can result in endless debugging. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel