LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Make LKSL.Generics.Collections.pas compatible with FreePascal #39

Closed LaKraven closed 6 years ago

LaKraven commented 9 years ago

Certain aspects of the Generics Collections unit are specific to Delphi, and IFDEFs are needed to accommodate FreePascal.

The following are already known not to exist natively in FreePascal (and will likely need custom implementations just as TStopwatch did):

Note that the above might exist in FPC, but in units with different names.

LaKraven commented 9 years ago

It builds now, however it does not function the same way as under Delphi... mainly because of the lack of hash comparison on FreePascal's equivalent of TDictionary (which is TFPGMap)

Solution is to completely redevelop TLKDictionary to stand alone, and not use either TDictionary or TFPGMap at all.

Similarly, I should remove any use of IEqualityComparer, TEnumerable and TPair, or reimplement all of the above as part of the LKSL itself.