[fpc-pascal] What happens when assigning interfaces?
Ryan Joseph
genericptr at gmail.com
Fri Jul 10 09:00:28 CEST 2020
> On Jul 10, 2020, at 12:31 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
>
> A lookup is only necessary if you use e.g. "SomeClass as SomeIntf".
so if I do:
DoSomething(c as IFoo);
then Supports() is called at runtime to return the IFoo interface? That's the kind of thing I was really curious about, when are runtime checks performed vs compile time checks.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list