According to the Nim documentation (I don't remember if it was on Nim by Example, or in the Nim manual), but var a: myArray instanciates by itself the nested array. This code produces also or a segmentation fault error:
Calling fillArray procedure... │~ [1] 15746 segmentation fault (core dumped) ./nim_test According to this output, "something" happened at the fillArray procedure call (as the first echo statement has not been executed... I think). I will try to debug the code using gdb or something, but I would be grateful if someone has a clear explanation/documentation to provide me, in order to explain the behaviour (and the mistake I did). Btw, I use the last version of Nim: 0.19.0. Thanks in advance, and best wishes for the end of this year[URL="https://forum.nim-lang.org/newthread"].[/URL]
Can you add your myArray type and fillArray() proc declaration?
Also make sure to triple-quote your code samples.