Am 12.10.2011 14:08, schrieb Leonardo M. Ramé:
Hi, I'm wondering if the rtl or a standard package includes classes for
handling lists of Integer, Double, and other types. Similar to
TStringList, but for numerical types.

Using generics this is easy:

=== source begin ===

uses
  fgl;

type
  TIntegerList = specialize TFPList<Integer>;
  TDoubleList = specialize TFPList<Double>;

=== source end ===

Regards,
Sven

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

Reply via email to