[fpc-devel] [fpc-pascal] How does TFPGMap key compare work?

Sven Barth 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>
> wrote:
> >
> > 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.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20210423/c0889f47/attachment.htm>


More information about the fpc-devel mailing list