Recent

Author Topic: IEquatable<T> interface  (Read 155 times)

denis.totoliciu

  • New Member
  • *
  • Posts: 21
IEquatable<T> interface
« 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.
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!
« Last Edit: July 07, 2020, 01:13:45 pm by denis.totoliciu »

Thaddy

  • Hero Member
  • *****
  • Posts: 10488
Re: IEquatable<T> interface
« Reply #1 on: July 07, 2020, 01:01:03 pm »
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
« Last Edit: July 07, 2020, 01:14:51 pm by Thaddy »
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

 

TinyPortal © 2005-2018