> My problem here is
Your problem is, that you do not understand that an array in Nim has fixed size specified at compile time. So your code as shown in your first message here makes no sense. As Mr LemonBoy told you, you may try to make desired size a compile time parameter of your object data type, or you may use seq data type instead of array, as seq size is dynamic.
