<p>Am 27.04.2015 23:27 schrieb "Michael Ring" <<a href="mailto:mail@michael-ring.org">mail@michael-ring.org</a>>:<br>
><br>
> I now officially feel stupid, this now works with the ; in place, I could have sworn that I have tried this......<br>
><br>
> But two lines deeper I end up with a new problem now:<br>
><br>
> TSpecialFunctionRegisterComparer = class(TComparer<TSpecialFunctionRegister>)<br>
> function Compare(constref Left, Right: TSpecialFunctionRegister): Integer; override;<br>
> end;<br>
><br>
> Error: class type expected, but got "TComparer"<br>
> Fatal: class type expected, but got "TComparer"<br>
><br>
> Is this a similar problem?<br>
><br>
> If yes then I guess I will need to stay with -Mdelphi the specialize syntax is not availabe in delphi mode (identifier not found "specialize") and the generics library where TComparer comes from explicitly sets delphi mode.</p>
<p>In mode ObjFPC you must use "specialize" when you want to specialize a class, this includes the declaration of the class parent.<br>
Also mixing generics from different modes makes no difference, the compiler supports that.</p>
<p>Regards,<br>
Sven</p>