Juha Manninen (gmail) escreveu:
Hi
In Lazarus project jcf2 component has an IntList class which is poorly
implemented. It depends on integer and pointer being the same size.
I will later suggest to replace it.
I have a better IntList. See:
http://github.com/JuhaManninen/Pascal/blob/master/IntList/intlist.pas
It is similar to TStringList except that it works with integers.
It is well tested.
Question: can this class be added to FCL?
Clearly such class is needed sometimes and people must make their own versions
of it. Generics can solve it in the future but it is not ready yet.
Yes it's ready in fpc 240:
uses
Fgl;
type
TIntegerList = specialize TFPGList <Integer>;
Luiz
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal