Re: [fpc-pascal] Overriding properties

2014-07-09 Thread Sven Barth
Am 09.07.2014 21:41 schrieb "Timothy Groves" : >> What exactly is your problem with using generics? > > I can't access properties of whatever data type I used to specialize. So it's difficult to write a class that contains a list, that allows me to sort that list. Do you have an example? Maybe yo

Re: [fpc-pascal] Overriding properties

2014-07-09 Thread Timothy Groves
On 14-07-09 12:57 PM, Sven Barth wrote: Am 09.07.2014 18:43 schrieb "Timothy Groves" mailto:the.tail.kin...@gmail.com>>: > > Is there any way to override the type of a property? As an example, if I have written a list class: > > type > tList = class (tObject) > private >

Re: [fpc-pascal] Overriding properties

2014-07-09 Thread Sven Barth
Am 09.07.2014 18:43 schrieb "Timothy Groves" : > > Is there any way to override the type of a property? As an example, if I have written a list class: > > type > tList = class (tObject) > private > t_current : tObject; > t_items : array of tObject; > pub