[fpc-pascal] Re: double dispatch

2011-03-19 Thread leledumbo
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

Re: [fpc-pascal] Re: double dispatch

2011-03-19 Thread Jonas Maebe
On 19 Mar 2011, at 15:58, leledumbo wrote: No, because overloading works the same as in C++ (determined statically at compile time). Are you sure, Jonas? Yes. Because I've been able to implement visitor pattern which is a kind of double dispatch. Of course it's not implemented like the

Re: [fpc-pascal] Re: double dispatch

2011-03-19 Thread Marco van de Voort
In our previous episode, leledumbo said: 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