[fpc-pascal] Const Array Length (was Dynamic Array Length)

Juha Manninen juha.manninen at phnet.fi
Sat Jan 2 17:02:39 CET 2010


On lauantai, 2. tammikuuta 2010 17:34:57 JoshyFun wrote:
> From my point of view that's a dynamic array, if it looks like a
> dynamic array ir should be a dynamic array.

It can't be dynamic because it is under "const" section :-)

> Other pascals uses something like:
> a: array[1..] or string = ('aaa', 'bbb', 'ccc');
> or
> a: array[..] or string = ('aaa', 'bbb', 'ccc');

I have used only TP and Delphi and now some FPC. I didn't know of that syntax 
but it looks perfect. The main point is that the programmer doesn't need to 
calculate elements and set bounds.
IMO it should be implemented in FPC.


Regards,
Juha Manninen



More information about the fpc-pascal mailing list