Ah... I can see it now: 711 function TFPGList.IndexOf(const Item: T): Integer; 712 begin 713 Result := 0; 714 {$info TODO: fix inlining to work! InternalItems[Result]^} 715 while (Result < FCount) and (PT(FList)[Result] <> Item) do 716 Inc(Result); 717 if Result = FCount then 718 Result := -1; 719 end;
This is where the = operator is required (<> is derived from = ). I continue the discussion in mantis, so that this can be solved (hopefully). -- View this message in context: http://old.nabble.com/Generics-problem-question-tp27036004p27173345.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal