Re: [fpc-pascal] Handling virtual abstract method in case of generics

2014-09-05 Thread Sven Barth
Am 05.09.2014 16:03 schrieb "Xiangrong Fang" : > > Hi all, > > I am having trouble with the following code: > > generic TVector = class > type > DataType = array of T; > private > //... > protected > //... > public > //... > end; > > generic TSortableVector = class(spe

[fpc-pascal] Handling virtual abstract method in case of generics

2014-09-05 Thread Xiangrong Fang
Hi all, I am having trouble with the following code: generic TVector = class type DataType = array of T; private //... protected //... public //... end; generic TSortableVector = class(specialize TVector) protected function OnSort(v1, v2: T): Integer; virtual;