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

Vincent Snijders vsnijders at vodafonevast.nl
Sat Jan 2 19:54:30 CET 2010


Jürgen Hestermann schreef:
> 
> 
>> Juha Manninen schrieb:
>> const
>>   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.
> 

I suggest you add an entry on 
http://wiki.lazarus.freepascal.org/Bounties#Multi-platform_bounties, so 
we know how much you would appreciate it.

Vincent



More information about the fpc-pascal mailing list