[fpc-devel] [fpc-pascal] How does TFPGMap key compare work?
pascaldragon at googlemail.com
Fri Apr 23 07:53:31 CEST 2021
Ryan Joseph via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am Fr.,
23. Apr. 2021, 00:53:
> > On Apr 21, 2021, at 11:21 PM, Sven Barth <pascaldragon at googlemail.com>
> > You need to use named types, though for operators this is less useful,
> because the compiler will implicitly convert different ShortString types to
> find a suitable operator overload:
> Then the compiler must do this for all strings types by default right?
For the compiler it's more often than not simply a stringdef with the
string type set to st_shortstring. The length of that stringdef comes into
play much less often.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel