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

[fpc-pascal] Overriding properties

2014-07-09 Thread 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; public property Current : tObject read t_current writ

Re: [fpc-pascal] OT: Listing fpc options Was: Using a custom fpc.cfg

2014-07-09 Thread Mark Morgan Lloyd
Tomas Hajny wrote: grep -e "^F\*" < fpcsrc/compiler/msg/errore.msg | cut -c3- | sed -e "s/^1/-/" -e "s/^2/ -/" -e "s/_/ /" Apologies for being off-topic. I am interested in what it is safely compatible to do across various environments in clever compile scripts. Combining it would be inde