We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54e3ff commit 6aef01fCopy full SHA for 6aef01f
code-samples/for_in_list.dpr
@@ -1,19 +1,14 @@
1
{$ifdef FPC} {$mode objfpc}{$H+}{$J-} {$endif}
2
{$ifdef MSWINDOWS} {$apptype CONSOLE} {$endif}
3
4
-{$ifndef FPC}
5
- {$message warn 'Delphi does not have FGL unit'}
6
- begin end.
7
-{$endif}
8
-
9
uses
10
- SysUtils, FGL;
+ SysUtils, Generics.Collections;
11
12
type
13
TMyClass = class
14
I, Square: Integer;
15
end;
16
- TMyClassList = {$ifdef FPC}specialize{$endif} TFPGObjectList<TMyClass>;
+ TMyClassList = {$ifdef FPC}specialize{$endif} TObjectList<TMyClass>;
17
18
var
19
List: TMyClassList;
0 commit comments