[fpc-pascal] Why do string indices start at 1, but array indices start at 0?

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Oct 21 10:27:30 CEST 2011

On 21 Oct 2011, at 08:25, Roberto P. wrote:

> During compilation, by statically checking the indices used to access the
> string, the compiler could fire a warning (or error?) if a  string[0] is
> found.

The compiler already does that (except for shortstrings, where string[0] is valid).


More information about the fpc-pascal mailing list