[fpc-pascal] Const Array Length (was Dynamic Array Length)
juergen.hestermann at gmx.de
Sat Jan 2 16:57:27 CET 2010
> Juha Manninen schrieb:
> a: array of string = ('aaa', 'bbb', 'ccc');
> It looks like a dynamic array, but obviously is not dynamic because it is
> constant. :-)
> The indexing would start from 0 like with dynamic arrays.
> It would not break the existing syntax and would be very intuitive.
I would appreciate such a change. I often have static lists in my programs,
which need to be changed from time to time.
Ok, it's not a big deal to change the upper border (and if I forget it I am reminded ;-)),
but it would make life easier a bit if it could be automatic and it looks like an
intuitive enhancement in the spirit of pascal.
More information about the fpc-pascal