[fpc-devel] PShortString
Florian Klaempfl
florian at freepascal.org
Fri Sep 10 08:50:18 CEST 2010
Am 10.09.2010 02:41, schrieb Hans-Peter Diettrich:
> Florian Klaempfl schrieb:
>
>> 1. Ancient code, keep in mind, most code not being back end code was
>> written ~10 years ago. At this time we even could not depend on
>> perfectly working ansistrings.
>
> I'm talking about nowadays situation.
You asked for reasons why it is done as it is done.
>
>> 2. Ansistring create an explicit exception frame etc. which slows down
>> things.
>
> Also when the strings are const parameters, as they are in this case?
If there is no other use, no. But if there is any processing or just a
local ansistring: yes.
More information about the fpc-devel
mailing list