arrays and matrixes
jonduncan
Posts: 40
can you make matrixes in spin· how do you assign an array or mattrix all at the same time without looping through the array
Comments
You'd have to loop through the array to do an assignment. There's no "syntactic sugar" for matrices.
For example, I use a 2d array by using the same method as Mike proposed. To init the array with all zeros, I do a bytefill(@buffarray, 0, BUFFLEN). BUFFLEN being the size of the array, and 0 being the value to fill with.