[fpc-pascal] Re: double dispatch
leledumbo
leledumbo_cool at yahoo.co.id
Sat Mar 19 15:58:41 CET 2011
> 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.
More information about the fpc-pascal
mailing list