As I said, handles returned by blitz are pointers to 'control structures' that blitz uses to manage them internally. You don't get pointers to the actual memory address where the raw data is stored - be it banks, meshes, whatever. Run this:
The difference between the two bank handles is only 64 so they can't possibly be pointing directly at the bank mem as each is 10000 bytes in size. :)
Blitz is a language that appeals to beginners too, remember, so giving them the ability to randomly poke around *anywhere* in memory wouldn't be such a great idea. :)
bank1 = CreateBank(10000) bank2 = CreateBank(10000) Print "Bank 1 handle: " + bank1 Print "Bank 2 handle: " + bank2 Print " Difference: " + Abs(bank1 - bank2) WaitKey() End
The difference between the two bank handles is only 64 so they can't possibly be pointing directly at the bank mem as each is 10000 bytes in size. :)
Blitz is a language that appeals to beginners too, remember, so giving them the ability to randomly poke around *anywhere* in memory wouldn't be such a great idea. :)