bmx-ng / bcc

A next-generation bcc parser for BlitzMax
zlib License
33 stars 13 forks source link

Structs: MultiDim-arrays of structs not working (stay Null) #604

Closed GWRon closed 1 year ago

GWRon commented 1 year ago

Our fellow coder @mingwya reported on discord, that multidimensional arrays of structs stay "null":

SuperStrict
Framework Brl.StandardIO
Import Brl.Vector

'results in "Null[]"
Local parentXY:SVec2I[,] = New SVec2I[5,5] 
'also results in "Null[]"
'Local parentXY:SVec2I[5,5]

Print parentXY[2,2].X

Output: Out of bounds array access and the debugger kicking in: image