Patch to allow c-style array range declaration.
Original Reporter info from Mantis: vden
-
Reporter name: Denis Volodarsky
Original Reporter info from Mantis: vden
- Reporter name: Denis Volodarsky
Description:
For example:
type
// Number specifies count of elements.
// Low index is implicit 0.
TArr1 = array [10] of byte; // same as 0..9
Steps to reproduce:
const
ITEM_COUNT = 5+5;
type
// TArr1 = array [0] of byte; // fails
// TArr1 = array [-5] of byte; // fails
TArr1 = array [ITEM_COUNT] of byte; // ok
begin
writeln('low = ', low(TArr1));
writeln('high = ', high(TArr1));
readln;
end.
Mantis conversion info:
- Mantis ID: 27377
- OS: Windows
- OS Build: 7
- Platform: x86
- Version: 3.0.1
- Monitored by: » vden (Denis Volodarsky), » parcel (Do-wan Kim)