Thanks very much. It now compiles! Dave.
-----Original Message----- From: J.-c. Chu <jc...@acm.org> Reply-to: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] Generics Compile Error, 2.4.2 vs 2.6.0 Date: Tue, 14 Feb 2012 00:59:03 +0800 If you are compiling the unit in Delphi mode, you’ll need to use the syntax of Delphi. * Generics are defined without the GENERIC keyword. * Generics are specialized without the SPECIALIZE keyword. * To define class-local types and variables, visibility specifiers need to be placed before the TYPE and VAR keywords. * Implementations of the methods of a generic class must include the type parameters of the class. Please check if the attached file works. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal