Forum > Packages and Libraries

Generics.Collections TDictionary issue

<< < (3/3)

avk:
I compiled with the current version of FPC-3.3.1. For FPC-3.2.2, it is required to replace the const modifier with constref.

TRon:
... and in which case the result differ (e.g. with 3.2.2 it seem to work as expected).

marcov:
If I change to Delphi mode. it works. ( remove 2 times specialize and two @'s.

And then const is no problem either. It might be some problem with objfpc  64-bit mode signature mismatching a mode delphi const (which is a constref) somehow rather than generics.collections
 
It might be worth a bug report.

dseligo:

--- Quote from: TRon on January 29, 2023, 03:33:33 pm ---... and in which case the result differ (e.g. with 3.2.2 it seem to work as expected).

--- End quote ---

Yes, with 3.2.2 and constref it works:

--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Ok, addedOk, contains Ok, addedOk, contains

avk:

--- Quote from: marcov on January 29, 2023, 03:34:40 pm ---...
It might be worth a bug report.

--- End quote ---

It seems a similar issue has already been reported in #40074.

Navigation

[0] Message Index

[*] Previous page

Go to full version