Are you compiling on Windows, and what is your exact errormessage?
Error: identifier idents no member "tryAdd"
Error: identifier idents no member "tryAdd"
FPC's TDictionary does not have a TryAdd() method. Delphi's TDictionary has had TryAdd() for only a few years (since 10.3 Rio), so likely hasn't made its way into FPC yet.
TryAdd IS available through TOpenAddressing, which is an abstractancestor of TDictionary.
See line 265 in generics.dictionariesh.inc
The implementation is on line 610 of generics.dictionaries.inc
@Vaytl: what version of FPC/Lazarus are you using?Lazarus IDE v2.2.0RC1 r65419 X64
Lazarus IDE v2.2.0RC1 r65419 X64Think again, that does not make sence.
FPC: 3.2.2
@Vaytl: what version of FPC/Lazarus are you using?Lazarus IDE v2.2.0RC1 r65419 X64
FPC: 3.2.2
BTW @Sarah: You have a sneaky way to implement features....Respect. :o ::) :-X