blitz array

Blitz3D Forums/Blitz3D Beginners Area/blitz array

Ross C(Posted 2003) [#1]
what excatly is a blitz array? is itdifferent to a normal array? if not why are they called the same thing
thanks


WolRon(Posted 2003) [#2]
Do a search through this forums and you will find many matches to your question.


Ross C(Posted 2003) [#3]
ok thanks!


soja(Posted 2003) [#4]
To condense many of them...

Normal array, e.g. Dim Array%(10)
1) global
2) can't be used in custom types
3) can't be passed into/returned from functions
4) can be multi-dimension
5) faster than...

"BlitzArrays(TM)", e.g. Array%[10]
1) global or local
2) can be used in custom types
3) can be passed into and returned from functions
4) slower than normal arrays
5) can only be one dimension
6) undocumented (meaning that the implementation may change, so don't rely on them to always be there...officially)

All - if I missed anything, or got something wrong, speak up.


SoggyP(Posted 2003) [#5]
Hi Folks,

@Soja: I thought the use of arrays within types was documented? If so, does that make them different to Blitz Arrays?

Later,

Jes


soja(Posted 2003) [#6]
Hi SoggyP,

I don't understand. Do you mean to say you can use a normal array () inside a custom type? Or are you still referring to the [] array type? I'm pretty sure that's still a "BlitzArray", regardless of whether it's in a type definition or elsewhere. I didn't think it was documented though (as only part of a custom type or in general). Do you have a reference somewhere? Thx.