In our previous episode, Jorge Aldo G. de F. Junior said: > i already know about virtual metods, > > by dynamic dispatch i mean to call a procedure by its name, at > runtime, not at compile time... > > i simply dont know how to do it (maybe object pascal doesnt support this ?)
Two forms: The first is only for published methods afaik, and that functionality is meant for framework internal use, so there is no short syntax. (Lazarus uses this for its streamed messagehandlers, which are streamed as name) The second is idispatch, the COM like way, which is used by interfaces to e.g. office applications and scripting languages. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal