Re: [fpc-pascal] Generic TFPGList gives me compiler error: Operator is not overloaded

2013-09-18 Thread Sven Barth
On 18.09.2013 10:51, Dennis Poon wrote: Sven, I am still using fpc 2.6.2. May I know whether the generics bugs for 2.6.2 are catchable at compiler times or I only get to find out at run time? I'm currently not aware of any runtime bugs so all should be noticable by the compiler complaining ab

Re: [fpc-pascal] Generic TFPGList gives me compiler error: Operator is not overloaded

2013-09-18 Thread Dennis Poon
Sven, I am still using fpc 2.6.2. May I know whether the generics bugs for 2.6.2 are catchable at compiler times or I only get to find out at run time? Dennis Sven Barth wrote: On 17.09.2013 17:39, Dennis Poon wrote: Sven, Thanks a lot. It worked. Generics, advanced record, customized ope

Re: [fpc-pascal] Generic TFPGList gives me compiler error: Operator is not overloaded

2013-09-17 Thread Sven Barth
On 17.09.2013 17:39, Dennis Poon wrote: Sven, Thanks a lot. It worked. Generics, advanced record, customized operator ... all these new features are so cool. I am impressed that Free Pascal has become so powerful. At least generics and operator overloads aren't that new. What's new is that g

Re: [fpc-pascal] Generic TFPGList gives me compiler error: Operator is not overloaded

2013-09-17 Thread Dennis Poon
Sven, Thanks a lot. It worked. Generics, advanced record, customized operator ... all these new features are so cool. I am impressed that Free Pascal has become so powerful. Dennis uses fgl; Type RScene=record ID : Word; Name, Category : String; end; TSceneList=special

Re: [fpc-pascal] Generic TFPGList gives me compiler error: Operator is not overloaded

2013-09-17 Thread Sven Barth
On 17.09.2013 14:52, Dennis Poon wrote: I have this: uses fgl; Type RScene=record ID : Word; Name, Category : String; end; TSceneList=specialize TFPGList; The error is: Operator is not overloaded: "RScene" = "RScene" I suppose the generic thing does not know how to compa

[fpc-pascal] Generic TFPGList gives me compiler error: Operator is not overloaded

2013-09-17 Thread Dennis Poon
I have this: uses fgl; Type RScene=record ID : Word; Name, Category : String; end; TSceneList=specialize TFPGList; The error is: Operator is not overloaded: "RScene" = "RScene" I suppose the generic thing does not know how to compare 2 records. How do I solve that? Dennis ___