Re: [fpc-pascal] Generics vs TCollection

2011-11-10 Thread Graeme Geldenhuys
On 9 November 2011 22:08, Michael Van Canneyt wrote: > > Hm. I fail to see this: Where is the gain in that ? +1 -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___

Re: [fpc-pascal] Generics vs TCollection

2011-11-09 Thread Michael Van Canneyt
gain in that ? Michael. Best regards Thierry - Mail Original - De: "michael vancanneyt" À: "FPC-Pascal users discussions" Envoyé: Mardi 8 Novembre 2011 13h22:31 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [fpc-pascal] Generics

Re: [fpc-pascal] Generics vs TCollection

2011-11-09 Thread Felipe Monteiro de Carvalho
In my experience generics are very good, but they are not without problems. There are some limitations in the implementation and I have already hit some bumps in the road when using them (search the mailling list, I don't remember exactly the issues) But I can't compare them to collections, becaus

Re: [fpc-pascal] Generics vs TCollection

2011-11-09 Thread tcoq
" À: "FPC-Pascal users discussions" Envoyé: Mardi 8 Novembre 2011 13h22:31 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [fpc-pascal] Generics vs TCollection ... The difference is mainly that in the case of TCollection(Item) you need to override

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread michael . vancanneyt
On Tue, 8 Nov 2011, Graeme Geldenhuys wrote: On 8 November 2011 12:13, wrote: I have tons of code that uses them. Lazarus has tons of code that uses them. There is no way that we're going to rewrite all that stuff. Sorry for any confusion. I did not post this with the intention of removi

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread Graeme Geldenhuys
On 8 November 2011 11:58, Jonas Maebe > wrote: > > At the very least, backward compatibility with existing code. We even still > ship a Turbo Pascal-compatible "objects" unit. Please see my reply to Michael. I had no intentions in recommending the removal of TCollection. I'm just comparing functi

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread Graeme Geldenhuys
On 8 November 2011 12:13, wrote: > > I have tons of code that uses them. Lazarus has tons of code that uses them. > There is no way that we're going to rewrite all that stuff. Sorry for any confusion. I did not post this with the intention of removing TCollection/TCollectionItem classes from FPC

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread michael . vancanneyt
On Tue, 8 Nov 2011, Graeme Geldenhuys wrote: Hi, I was reviewing some old code that used TCollection & TCollectionItem descendants. This made me think... With the introduction of Generics, is there really still a need for TCollection/TCollectionItem? I have tons of code that uses them. Laz

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread Jonas Maebe
On 08 Nov 2011, at 10:55, Graeme Geldenhuys wrote: I was reviewing some old code that used TCollection & TCollectionItem descendants. This made me think... With the introduction of Generics, is there really still a need for TCollection/TCollectionItem? At the very least, backward compatibilit

[fpc-pascal] Generics vs TCollection

2011-11-08 Thread Graeme Geldenhuys
Hi, I was reviewing some old code that used TCollection & TCollectionItem descendants. This made me think... With the introduction of Generics, is there really still a need for TCollection/TCollectionItem? -- Regards,   - Graeme - ___ fpGUI - a cross