[fpc-pascal] Passing around Pascal strings vs AnsiString
Hairy Pixels
genericptr at gmail.com
Wed Jun 14 16:59:50 CEST 2023
> On Jun 14, 2023, at 8:30 PM, Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
> For parameters that are passed by value, the copying most likely will be
> slower since all bytes from the string must be copied to the new string.
>
> For var parameters it should not matter.
ah yes var. What about const? surely it behaves the same as var for short strings as they are a fundamental type.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list