Banks vs Arrays

Blitz3D Forums/Blitz3D Programming/Banks vs 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.

I quite like banks actually; they may be slightly slower than arrays depending on your usage, but the fact that you can slam a bank handle into a type instance field means you can store a shedload of local variables in a 100% flexible format per instance without having to predefine anything other than the header format at design time.

Pretty much the only thing I still use arrays for are tiled maps, and even then I've started to use banks for those instead (especially on certain i/o routines, like grabbing from dlls or reading from the filesystem).