2d access for a resliced array

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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)