Rainer Stratmann schrieb:
Pascal has better ways to deal with array bounds.
But at this moment it is not possible to make a const array with auto
calculated range ( [ 1..] ). It would be easy to implement, I think.
But these things are not related. Calculating array bounds should
not be dependend on the array type (and its declaration).
When determining the number of elements in an array I therefore also think
that sizeof() or High()-Low()+1 would be the best. And that should also
be the case for constant arrays with auto size calculation (if someone
finds the time to implement it and if it can be done easily).
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal