[fpc-pascal] Why do string indices start at 1, but array indices start at 0?
Andrew Haines
AndrewD207 at aol.com
Thu Oct 20 23:48:48 CEST 2011
On 10/20/11 17:43, Andrew Pennebaker wrote:
> It's inconsistent and ripe for bugs.
>
> Cheers,
>
> Andrew Pennebaker
> www.yellosoft.us <http://www.yellosoft.us>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
As far as I know it's historical. String[0] used to contain the string
length (255 max). Now it may be something else.
Regards,
Andrew
More information about the fpc-pascal
mailing list