Am 2016-04-15 um 20:35 schrieb Sven Barth:
Am 15.04.2016 18:37 schrieb "Jürgen Hestermann" <juergen.hesterm...@gmx.de <mailto:juergen.hesterm...@gmx.de>>: > > Another advantage of having 1-based indeces in dyn. arrays > would be that you could store indeces in unsigned integers > while with 0-based indices high() may give -1. Indices in Pascal are always signed.
Yes, but I could store indices in DWORD if they would be 1-based and would not risk an exception if the index is "not valid" (which would be 0 in this case while it's -1 for 0-based indices). I would not be forced to make sure it is an signed integer where I store it.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal