Adding Arrays

BlitzMax Forums/BlitzMax Beginners Area/Adding Arrays

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.

Aren't you just concatenating arrays x and y? I.e. you should end up with x[] having 4 elements [1,2,2,-1] after the line x:+y.

Test Code
SuperStrict

Local x:Int[] = [1,2]
Local y:Int[] = [2,-1]

x:+y	'???

For Local i% = 0 Until x.length
	Print "x[" + i + "]: " + x<i>[i]</i>
Next
BlitzMax Output on Windows
Linking:untitled1.debug.exe
Executing:untitled1.debug.exe
x[0]: 1
x[1]: 2
x[2]: 2
x[3]: -1
Array concatenation was added in BlitzMax v1.26 (see Versions.doc in the BlitzMax installation directory).