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 the
Add/Extract/Remove/...-functions with typecasting?

3.) Or make a new generic class, derived from TFPObjectList and uses
this? Generics are stable in 2.2.0?

thx
Michael

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to