> No, because overloading works the same as in C++ (determined statically at compile time).
Are you sure, Jonas? Because I've been able to implement visitor pattern which is a kind of double dispatch. Of course it's not implemented like the example posted by the OP, but more like a simulation explained in http://en.wikipedia.org/wiki/Double_dispatch wikipedia . -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/double-dispatch-tp3987828p4072095.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal