On Tue, May 18, 2010 at 11:52, Florian Klaempfl <flor...@freepascal.org> wrote:
> Maybe (and really only maybe) the proper solution in this case are C++ > styled template methods. Different languages deal with this problem in different ways: - C++ (Java) have powerful enough template (generics) system which can handle this problem in most cases (personally, I like Java generics - they are pretty simple and not confusing like C++ templates; otoh, C++ templates allow you to blow up your own leg, as well as lot of other things) - in Eiffel, this is know problem of catcalls - here's some food for thought on this matter: http://dev.eiffel.com/Comparison_of_catcall_solutions I hope we'll see generics in FPC handle these situations in ... future :-) _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel