Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2001-10

array of question

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aleksey V. Vaneev

Hello,

Sorry, if this is somewhere commented. Just wanted to know how to correctly access "var A: array of <type>" arrays. Are they by default mapped with indices 0..size - 1, or their bounds are taken from the upper level declaration?

Best regards,
Aleksey

Reply by email

Jonas Maebe
to Aleksey V. Vaneev
Aleksey V. Vaneev wrote 5 lines
Sorry, if this is somewhere commented. Just wanted to know how to correctly access "var A: array of <type>" arrays. Are they by default mapped with indices 0..size - 1, or their bounds are taken from the upper level declaration?

What upper level declaration? Anyway, they always go from low(a) to high(a).

Jonas

Reply by email