[Seed7-users] Parameter Bug with Multi-Dimensional Arrays
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Zachary M. <zao...@ou...> - 2020-12-19 15:46:31
|
Hey, I encountered an issue while trying to use a two-dimensional array as a procedure’s parameter. If I declare the parameter as type “in” then a match error is raised when I try to run the program. However, if I declare the parameter as anything else (“inout”, “in var”, “ref” or “val”), then the program runs fine. I have attached a sample program as a quick demonstration. Run it as is, and the error will be thrown. Change the parameter type to another value and the program will run without issue. Perhaps this is due to the “in” type not being able to determine whether to use “var” or “ref” on a multi-dimensional array. |