Open SteveJustin1963 opened 1 month ago
Changing the array size after declaration is not possible in MINT unless it is the last to be declared on the heap. Because of the complexity I haven't allowed it. The solution would require a more sophisticated approach to be taken with memory management. Better to allocate the size needed. [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc ] If this syntax is unwieldy then maybe we need a better syntax similar to /A for declaring arrays based on a desired size Needs more thought
arrays are declared using [ ]. but we cannot declare an empty one as [ ] n ! with a given for later use we can get the array size with /S set array size with [ 3 /S ] // not sure whats best here - future feature ?
this works
we can use loop counters /i and /j to also control array size and access
also this works