[Seed7-users] Multi-Dimensional Return Bug
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Zaakari <Za...@pr...> - 2021-11-13 16:54:46
|
Hey Thomas, I ran into a strange error today: when I make a function to return a 2-dimensional string array, seed7 throws a "Match for ... failed" error. I can make local multi-dimensional arrays without issue, it's just when I try to use them as the result of a function that an error is raised. I'm guessing this happens with all types of multi-dimensional arrays--though I only tested string and integer arrays. I've attached an example program in which I have a local 2-dimensional string array that I loop through, echoing its contents. But if you un-comment the "test_multiplication" function then the program throws the error. I feel like I must be doing something wrong. But if so, I can't see what it is. If you would take a look at this, that would be great. Thanks, Zachary |