Passing Parameters by Reference?

BlitzPlus Forums/BlitzPlus Programming/Passing Parameters by Reference?

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.

see the help for CreateBank()

It's a piece o' mem

bla=CreateBank(10) ; creates a piece o' mem of 10 bytes

With PeekByte,PokeByte ..Int, ..Float, ..Short you can read/write these values to banks. If you put variables/values in banks (on fixed locations) then it's all very low-level stuff :)

A bank can be created and used locally in a function, that's what makes them handy.

bank=MakeBank()
Notify bank
Notify BankSize(bank)
FreeBank bank
End

Function Makebank()
  Return CreateBank(10)
end Function