[fpc-pascal] Generics problem/question

leledumbo leledumbo_cool at yahoo.co.id
Fri Jan 15 09:00:26 CET 2010


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.




More information about the fpc-pascal mailing list