Arrays in types
Blitz3D Forums/Blitz3D Beginners Area/Arrays in types you were so close!!
Type player
Field a
Field b[20]
End Type
:)
Type player
Field a
Field b[20]
End Type
:)
Note that the square-bracket array declaration format is undocumented, (which means "technically unsupported") for one reason or another (though you can use it fine). Also note that you can only have 1-dimensional arrays in this format.
I also seem to remember some people doing tests and it seems to me as if array access for [] arrays were slower than for the Dim() arrays. That's just the impression in my head though -- I could be way off-base.
I also seem to remember some people doing tests and it seems to me as if array access for [] arrays were slower than for the Dim() arrays. That's just the impression in my head though -- I could be way off-base.