2d access for a resliced array

BlitzMax Forums/BlitzMax Programming/2d access for a resliced array

CS_TBL(Posted 2007) [#1]
So, are there any tricks to have a 2d array of any type resliced? The nature of my app dictates that the user can create a 2d array of any size using a script. Ofcourse I could do a 1d array, reclice it, and do the odd address=x+width*y for each x,y position, but do I like that? (imagine image'esque array dimensions, so it would happen quite a lot)


ImaginaryHuman(Posted 2007) [#2]
You could have an array of arrays and reslice each one individually. That's basically what a 2d array is.