[fpc-pascal] bounded array types as procedure arguments
P Padilcdx
ppadilcdx at gmail.com
Sat Oct 23 20:24:54 CEST 2021
Hello,
Was trying to declare a procedure with an array argument, e.g. procedure p(a: array[1..9] of int64), and the compiler complained as it seems only accepts open arrays. If I set a type alias for the array, e.g. type t = array[1..9] of int64, then I can declare the procedure p(a: t). This behavior seems odd, why couldn’t I declare the procedure with a bounded array without having to declare a type alias first?
Thank you and apologies if this has been asked before. I just joined the mailing list.
More information about the fpc-pascal
mailing list