[fpc-pascal] Best way to use lists

2008-06-17 Thread Michael Fuchs
Hello, I try to implement some lists, so I can use them like the "List(of X)" in VB.NET. What is the best way to do this? 1.) Make some new classes, derived from TFPObjectList and overwrite the Add/Extract/Remove/... -functions? 2.) Make a new class with a private TFPObjectList and hand over th

[fpc-pascal] Best way to use lists

2008-06-17 Thread Michael Fuchs
Hello, I try to implement some lists, so I can use them like the "List(of X)" in VB.NET. What is the best way to do this? 1.) Make some new classes, derived from TFPObjectList and overwrite the Add/Extract/Remove/... -functions? 2.) Make a new class with a private TFPObjectList and hand ove