Right, I tried just {$mode delphi} and just generic, and when both failed I tried them at the same time.
Maybe I'm not using a recent enough version? Free Pascal Compiler version 2.4.4 [2011/05/01] for i386 Cheers, Andrew Pennebaker www.yellosoft.us On Wed, Oct 19, 2011 at 4:34 AM, Sven Barth <pascaldra...@googlemail.com>wrote: > Am 19.10.2011 10:01, schrieb Andrew Pennebaker: > > Sven, I added the {$mode delphi} macro and prefaced each type with the >> "generic" specification. I'm still getting errors. >> > > Either add "{$mode delphi}" XOR "generic" > > E.g. > > Solution 1: > > unit Foo; > interface > type > generic TGenArray<T> = array of T; > ... > > Solution 2: > > unit Foo; > {$mode delphi} > interface > type > TGenArray<T> = array of T; > > I just tested. Both work. > > Regards, > Sven > > ______________________________**_________________ > fpc-pascal maillist - > fpc-pascal@lists.freepascal.**org<fpc-pascal@lists.freepascal.org> > http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal> >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal