Re: [fpc-pascal] double dispatch

2011-03-19 Thread Jonas Maebe
On 18 Mar 2011, at 22:47, Jorge Aldo G. de F. Junior wrote: > Can FPC deal with double-dispatch ? No, because overloading works the same as in C++ (determined statically at compile time). Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

[fpc-pascal] double dispatch

2011-03-18 Thread Jorge Aldo G. de F. Junior
Can FPC deal with double-dispatch ? Say you have an object defined as : Type TMyObject = Class Public Procedure DoSomething(Const aObject : TObject); Virtual; End; TMyParameterObject = Class Public End; TMyOtherParameterObject = Class Public End; Can you do something like : Type TMyOtherObjec