Re: [fpc-pascal] TFPGList and objects

2020-05-28 Thread Ryan Joseph via fpc-pascal
> On May 29, 2020, at 3:29 AM, Sven Barth via fpc-pascal > wrote: > > Am 28.05.2020 um 19:36 schrieb Vojtěch Čihák via fpc-pascal: >> There is TFPGObjectList for objects. > > Ryan is talking about TP style objects. I had an array of records and I wanted to subclass the record which means I

Re: [fpc-pascal] TFPGList and objects

2020-05-28 Thread Sven Barth via fpc-pascal
Am 28.05.2020 um 19:36 schrieb Vojtěch Čihák via fpc-pascal: There is TFPGObjectList for objects. Ryan is talking about TP style objects. BTW, is FGL a good choice for generics? Some time ago Marco wrote here that FGL is moreless a technology demonstrator and Generics.Collection or other l

Re: [fpc-pascal] TFPGList and objects

2020-05-28 Thread Vojtěch Čihák via fpc-pascal
.   __ Od: "Ryan Joseph via fpc-pascal" Komu: "FPC-Pascal users discussions" Datum: 28.05.2020 09:30 Předmět: [fpc-pascal] TFPGList and objects Using objects in TFPGList is currently not possible because class operators are not supported in objects. I trie

[fpc-pascal] TFPGList and objects

2020-05-28 Thread Ryan Joseph via fpc-pascal
Using objects in TFPGList is currently not possible because class operators are not supported in objects. I tried using global scope operators but they don't seem to work. /usr/local/lib/fpc/3.3.1/units/x86_64-darwin/rtl/fgl.ppu:fgl.pp:988:50: error: Operator is not overloaded: "TInvocation" =