[fpc-pascal] Re: virtual method and generics

Xiangrong Fang xrfang at gmail.com
Tue Nov 19 10:26:14 CET 2013

2013/11/19 Xiangrong Fang <xrfang at gmail.com>

> Now I have a problem. CALL#1 is virtual as expected (sub-class's OnRestore
> is called), but CALL#2 is not virtual, it just call the (empty) OnRestore
> method defined in TTree.
> How to solve this problem?

BTW, this also does NOT solve the problem:

TSelfType(node).OnRestore; ​​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131119/730a1a7b/attachment.html>

More information about the fpc-pascal mailing list