[fpc-devel] ZEROBASEDSTRINGS

Ondrej Pokorny lazarus at kluug.net
Fri Apr 24 11:52:23 CEST 2026


On 4/24/2026 11:47 AM, Martin Frb via fpc-devel wrote:
> Does that affect the type definition? Or access in the source?

Access in the source (local).

> - If in "unitFoo" a string is declared while ZEROBASEDSTRINGS is on,
> - and it is accessed in untiBar, where this is OFF
>
> Will that string in unitBar be accessed zero or one based?

one based.

https://docwiki.embarcadero.com/RADStudio/Florence/en/Zero-based_strings_(Delphi)

Ondrej



More information about the fpc-devel mailing list