> On Feb 14, 2021, at 9:55 AM, Sven Barth via fpc-pascal 
> <fpc-pascal@lists.freepascal.org> wrote:
> 
> No, interfaces by *themselves* don't mean that. An interface instance is 
> merely a shifted Self pointer that points to the static VMT of which the 
> entries correct the Self pointer again upon the method call. This can be seen 
> in GetInterfaceByEntry in rtl/inc/objpas.inc (the core function dealing with 
> the casting of class to interface).

Remind me again, what happens when you cast a class to an interface? It's a 
runtime check with GetInterfaceByEntry?

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to