[fpc-pascal] Instances of interfaces ?

Adriaan van Os fpc at microbizz.nl
Fri Oct 10 11:41:49 CEST 2014


Michael Van Canneyt wrote:

> No, you can pass the interface pointer directly:
> 
> MyIntf : IMyInterface;
> 
> begin
>   MyIntf := MyClassInstance as IMyInterface;
> end;
> 
> Then pass on MyIntf.
> 

Thanks for the reply. That simplifies things.

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list