Re: [fpc-pascal] generic class helper and class references

2013-09-29 Thread Sven Barth
On 29.09.2013 05:30, Xiangrong Fang wrote: type generic TTree = class ... ... end; TTreeType = class of TTree; This is illegal code and compiled by pre-2.7.1 FPC only because of bugs in the generic implementation. "TTree" is not a legal type outside of the generic's declaration

[fpc-pascal] generic class helper and class references

2013-09-28 Thread Xiangrong Fang
Hi There, While playing with generics (ref. class inheritance and type incompatibility), I have an idea to use "generic class helper" to overcome the problem that generic methods cannot be "virtual" (because the compiler see specialized class different than the generic one?) I have a TTree generi