[fpc-pascal] non-virtual class methods called from virtual regular method

Jonas Maebe jonas at freepascal.org
Thu Apr 29 21:08:47 CEST 2021


On 29/04/2021 13:04, LacaK via fpc-pascal wrote:
> In regular virtual method, I expect, that Self resolves to runtime class
> type, thust calling CP1 should resolve to runtime type class method.

It works the same for class methods and non-class methods: no virtual =
no dynamic resolution when calling such a method.


Jonas


More information about the fpc-pascal mailing list