[lazarus] String parameters, ansistrings

SVAA svaa at retemail.es
Mon May 21 17:21:14 EDT 2001


Hello:

>>No, it doesn't copy it if you don't modify the string, believe me, I
>>implemented
>>the ansistrings in FPC.
>>


I will believe it ,  and think twice before opening my mouth ;-)

>Try the following and you'll get nearly the same times (only the
declaration
>is added!):
>
>Nevertheless, the const is much better programming style, if the string
>haven't to be modified ...


I've done it: I don't have so strong faith ;-)

with var or const:
  about 14'5 seconds

without
  about 17 seconds

A little better, but no so great. Any way, as you say, it's a good style.
that's my consolation

Regards
Santiago Amposta
svaa at retemail.es








More information about the Lazarus mailing list