Jonas Maebe wrote:
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 ;-).
Micha _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel