Skip to content

Quick.Arrays.Helper.pas(99,3) Error: Identifier not found "TArrayUtil" #108

Description

@z-cub

Hi,

I am trying to compile the ArrayHelpers sample for FPC but I get this error: Quick.Arrays.Helper.pas(99,3) Error: Identifier not found "TArrayUtil"

I found that in Quick.Arrays.Helper unit, TArrayUtil is enabled only for FPC:

class procedure TArrayHelper<T>.Remove(var aArray : TArray<T>; aIndex : Integer);
begin
  {$IFDEF DELPHIXE7_UP}
  System.Delete(aArray,aIndex,1);
  {$ELSE}
  TArrayUtil<T>.Delete(aArray,aIndex);
  {$ENDIF}
end;

This class is defined in the Quick.Commons unit, which is not being used by Quick.Arrays.Helper. Also in Quick.Commons I found that TArrayUtil is not enabled for FPC or Delphi

{$IFNDEF FPC}

{$IFNDEF DELPHIXE7_UP}
TArrayUtil<T> = class
  class procedure Delete(var aArray : TArray<T>; aIndex : Integer);
end;
{$ENDIF}
...
{$ENDIF}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions