Forum > General

IEquatable<T> interface

(1/2) > >>

denis.totoliciu:
Hello guys,

Tried to compile the JCL package from Project JEDI with FPC 3.0.4 and it raised an error that it could not find IEquitable IEquatable interface.
Searched for it in the whole RTL source code, but could not find it. This interface is declared in the System unit for Delphi.

In JCL it is used by generic container classes.
Would like to ask your opinion on the following:
1. Would such an interface fit in the FPC RTL?
or
2. Would it be more appropriate to declare it somewhere in the JCL?

Thank you!

Thaddy:
1. yes, but not in 3.0.4. The release version is 3.2.0
2. no, if Delphi declares it in system, FPC will probably do that too.

I don't think IEquitable  is a valid interface, you want to equate not quit.

Also note a compatible JCL version for windows is already provided as standard

Sandokhane:

--- Quote from: denis.totoliciu on July 07, 2020, 12:37:14 pm ---Hello guys,

Tried to compile the JCL package from Project JEDI with FPC 3.0.4 and it raised an error that it could not find IEquitable IEquatable interface.
...

--- End quote ---

Hello ; is there any good news about compiling jcl with lazarus ?
because i have got the same error when trying .

Thaddy:
It is standard and windows only....

nicanor:
Same here... I am using the trunk versions of fpc (>3.2.2) and lazarus (2.3) installed via fpcupdeluxe in windows. I searched the folders and files of lazarus and fpcsrc and could not find occurrences or declaration of this interface. References appear only in ccr where jcl is installed.

Navigation

[0] Message Index

[#] Next page

Go to full version