<div class="gmail_quote">2011/12/17 Juha Manninen <span dir="ltr"><<a href="mailto:juha.manninen62@gmail.com">juha.manninen62@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I used generics in Lazarus code base for the first time, in TreeFilter component:</div><div><br></div><div> TTreeNodeList = specialize TFPGList<TTreeNode>;</div><div>and</div><div><div> TBranchList = specialize TFPGObjectList<TBranch>;</div>
</div><div><br></div><div>I works for me on Windows and Linux, with FPC 2.4.4 and 2.6.0 RC1.</div><div>Now Zeljan reported it does not compile on Mac OSX 64-bit, using FPC 2.6.0 RC1.</div><div>What can cause it? My generics usage is the most basic possible.</div>
<div>Both TTreeNode and TBranch are simple classes.</div></blockquote><div><br></div><div> "Fatal: Syntax error, ">" expected but "CLASS" found"</div><div><br></div><div>Works on 64-bit Linux.</div>
<div>How can OSX affect generics syntax?</div><div><br></div><div>Juha</div><div><br></div></div>