Re: [fpc-pascal] bounded array types as procedure arguments

2021-10-24 Thread P Padilcdx via fpc-pascal
Thank you for the clear explanation. > On Oct 24, 2021, at 1:05 AM, Michael Van Canneyt via fpc-pascal > wrote: > > > > On Sat, 23 Oct 2021, P Padilcdx via fpc-pascal wrote: > >> Hello, >> >> Was trying to declare a procedure with an array argument,

[fpc-pascal] bounded array types as procedure arguments

2021-10-24 Thread P Padilcdx via fpc-pascal
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