Slicing question

BlitzMax Forums/BlitzMax Programming/Slicing question

*(Posted 2011) [#1]
Does slicing only work with standard variable types or can it be used with other things like arrays of types?

At the moment i have:

Global array:tsurface[0]

And i use
Array = array[..arraysize +1]

But accessing the next element gives a null error, anyone have any ideas?


Zeke(Posted 2011) [#2]
use array[currentpos]=new tsurface before accessing element.(current pos is 'next element' position)

Last edited 2011


*(Posted 2011) [#3]
ah ok thanks Zeke forgot about the initialisation problems