[fpc-pascal] Declare a standalone procedure of object (TNotifyEvent)

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Sep 13 08:33:27 CEST 2007


On 13 Sep 2007, at 04:00, Luiz Americo Pereira Camara wrote:

> procedure FooBar of object;
> begin
> end;
>
> Without sucess.
>
> Is it possible to declare such function to use as a TNotifyEvent  
> without creating a class only to hold the callback method?

Not without unsupported ugly hacking and explicit typecasting.


Jonas



More information about the fpc-pascal mailing list