[fpc-pascal] Property Tags

Marco van de Voort marcov at stack.nl
Wed Aug 4 14:42:07 CEST 2010

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

The second is idispatch, the COM like way, which is used by interfaces to
e.g. office applications and scripting languages. 

More information about the fpc-pascal mailing list