Skip to content

Commit 9ec5a77

Browse files
committed
Fix adv_rec for Delphi, so Delphi wants out while FPC wants var, we have to use $ifdef
1 parent 189a028 commit 9ec5a77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

400_advanced_records_initialize/adv_rec.dpr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ program adv_rec;
55
type
66
TVector3 = record
77
function Len: Single;
8-
class operator Initialize(var V: TVector3);
8+
class operator Initialize({$ifdef FPC}var{$else}out{$endif} V: TVector3);
99
class operator Finalize(var V: TVector3);
1010
case Integer of
1111
0: (X, Y, Z: Single);
@@ -15,7 +15,7 @@ type
1515
var
1616
VectorsNum: Cardinal;
1717

18-
class operator TVector3.Initialize(var V: TVector3);
18+
class operator TVector3.Initialize({$ifdef FPC}var{$else}out{$endif} V: TVector3);
1919
begin
2020
Inc(VectorsNum);
2121
Writeln('TVector3.Initialize, now count: ', VectorsNum);

0 commit comments

Comments
 (0)