[fpc-devel] Specialized Generic for Structures with Abstract Methods

Andrew Brunner andrew.t.brunner at gmail.com
Wed Jun 23 00:05:53 CEST 2010


I provided a working example.  Just employ uGenerics in a project and declare

 GInt64List=specialize GStructList<Int64>;

 TInt64List=Class(GInt64List)
 public
   procedure Empty(Var Item:Int64); override;
   procedure Done(Var Item:Int64);override;
   procedure Init(Var Item:Int64);override;
 end;

and see the errors.

Did the uGenerics unit get dropped by the mailer daemon?

On Tue, Jun 22, 2010 at 3:34 PM, Micha Nelissen <micha at neli.hopto.org> wrote:
> Andrew Brunner wrote:
>>
>> ... then I get
>>
>> C:\Developer\Source\Libraries\Core\uInt64Array.pas(54,17) Error:
>> Forward declaration not solved "GStructList$Int64.Empty(var Int64);"
>
> Please always provide a complete compilable example.
>
> Micha
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>



More information about the fpc-devel mailing list