[fpc-pascal] TArray.Sort<string>(array) returns 'Error: Identifier not found "TArray" '

Sven Barth pascaldragon at googlemail.com
Thu Aug 4 08:07:04 CEST 2016


Am 04.08.2016 03:17 schrieb "silvioprog" <silvioprog at gmail.com>:
> I got:
>
> 'Error: Identifier not found "TArray"'
>
> So I've fixed it with:
>
> === begin code ===
>
> ...
>
> {$IFDEF FPC}
>     TArrayHelper<string>.Sort(ordkeys);
> {$ELSE}
>     TArray.Sort<string>(ordkeys);
> {$ENDIF}
>
> ...
>
> === end code ===
>
> So, is this the best way to solve this problem?

For now, yes. Maciej still needs to adjust the code to make use of the
features added in trunk.

>
> P.S.: You should remove the {$H+} from the generics.* units, the mode
Delphi already enables the long strings.

It might be redundant, but it doesn't hurt either.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160804/f718f7ac/attachment.html>


More information about the fpc-pascal mailing list