Skip to content

Commit 277bddf

Browse files
committed
Better GENERICS_CONSTREF comment
1 parent 0b3b1b0 commit 277bddf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

code-samples/generics_sorting.dpr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
{ If GENERICS_CONSTREF is defined, then various routines used with Generics.Collections
55
(like callbacks we pass to TComparer, or OnNotify callback or Notify virtual method)
66
should have "constref" parameter, not "const".
7-
This was the case of FPC<= 3.2.0, FPC changed it in
8-
https://gitlab.com/freepascal.org/fpc/source/-/commit/693491048bf2c6f9122a0d8b044ad0e55382354d .
9-
It is also applied to FPC fixes branch 3.2.3 and later 3.2.4(rc1). }
7+
This was the case in FPC <= 3.2.0.
8+
FPC changed constref->const in
9+
https://gitlab.com/freepascal.org/fpc/source/-/commit/693491048bf2c6f9122a0d8b044ad0e55382354d
10+
and the change is present in FPC fixes branch 3.2.3 and later 3.2.4(rc1). }
1011
{$ifdef VER3_0} {$define GENERICS_CONSTREF} {$endif}
1112
{$ifdef VER3_2_0} {$define GENERICS_CONSTREF} {$endif}
1213
{$ifdef VER3_2_2} {$define GENERICS_CONSTREF} {$endif}

code-samples_ukrainian/generics_sorting.dpr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
{ If GENERICS_CONSTREF is defined, then various routines used with Generics.Collections
55
(like callbacks we pass to TComparer, or OnNotify callback or Notify virtual method)
66
should have "constref" parameter, not "const".
7-
This was the case of FPC<= 3.2.0, FPC changed it in
8-
https://gitlab.com/freepascal.org/fpc/source/-/commit/693491048bf2c6f9122a0d8b044ad0e55382354d .
9-
It is also applied to FPC fixes branch 3.2.3. }
7+
This was the case in FPC <= 3.2.0.
8+
FPC changed constref->const in
9+
https://gitlab.com/freepascal.org/fpc/source/-/commit/693491048bf2c6f9122a0d8b044ad0e55382354d
10+
and the change is present in FPC fixes branch 3.2.3 and later 3.2.4(rc1). }
1011
{$ifdef VER3_0} {$define GENERICS_CONSTREF} {$endif}
1112
{$ifdef VER3_2_0} {$define GENERICS_CONSTREF} {$endif}
1213
{$ifdef VER3_2_2} {$define GENERICS_CONSTREF} {$endif}

0 commit comments

Comments
 (0)