[fpc-pascal] Generics Compile Error, 2.4.2 vs 2.6.0
    David Copeland 
    david.copeland at jsidata.ca
       
    Mon Feb 13 18:22:38 CET 2012
    
    
  
Thanks very much. It now compiles! 
Dave.
-----Original Message-----
From: J.-c. Chu <jcchu at acm.org>
Reply-to: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
To: FPC-Pascal users discussions <fpc-pascal at 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.
    
    
More information about the fpc-pascal
mailing list