<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ryan Joseph via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Fr., 23. Apr. 2021, 00:53:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Apr 21, 2021, at 11:21 PM, Sven Barth <<a href="mailto:pascaldragon@googlemail.com" target="_blank" rel="noreferrer">pascaldragon@googlemail.com</a>> wrote:<br>
> <br>
> 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:<br>
<br>
Then the compiler must do this for all strings types by default right?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>