[fpc-devel] Parameters must match exactly?

Aleksa Todorovic alexione at gmail.com
Tue May 18 15:30:19 CEST 2010


On Tue, May 18, 2010 at 11:52, Florian Klaempfl <florian at 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 :-)



More information about the fpc-devel mailing list