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

Tomas Hajny XHajT03 at hajny.biz
Fri Oct 21 00:20:03 CEST 2011


On 20 Oct 11, at 17:43, Andrew Pennebaker wrote:

> It's inconsistent and ripe for bugs.

Array indices may start at any ordinal value (including e.g. 
characters, values of enumerated types, etc.), not just 0. Only 
dynamic arrays always start at 0 because that is how they have been 
"imported" from other languages.

Tomas




More information about the fpc-pascal mailing list