[fpc-pascal] Re: Generics and Mac

Juha Manninen juha.manninen62 at gmail.com
Sat Dec 17 18:22:28 CET 2011


2011/12/17 Juha Manninen <juha.manninen62 at gmail.com>

> I used generics in Lazarus code base for the first time, in TreeFilter
> component:
>
>   TTreeNodeList = specialize TFPGList<TTreeNode>;
> and
>   TBranchList = specialize TFPGObjectList<TBranch>;
>
> I works for me on Windows and Linux, with FPC 2.4.4 and 2.6.0 RC1.
> Now Zeljan reported it does not compile on Mac OSX 64-bit, using FPC 2.6.0
> RC1.
> What can cause it? My generics usage is the most basic possible.
> Both TTreeNode and TBranch are simple classes.
>

 "Fatal: Syntax error, ">" expected but "CLASS" found"

Works on 64-bit Linux.
How can OSX affect generics syntax?

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111217/ef4122b4/attachment.html>


More information about the fpc-pascal mailing list