Point type to memmory data.

BlitzPlus Forums/BlitzPlus Programming/Point type to memmory data.

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.

Types have pointer properties when it comes to passing them, but because of the way they are auto-containered by Blitz, theres no way to make a type/object pointer that points to and already allocated location.
Would it be good though lol..We could have:
type my_type
field v%
end type
bank%=CreateBank(4);
instance.my_type = Object.my_type(CreateBank);
But that'll never happen.

Your could be better off just using a global dynamic array and redimming it, but then for byte access youd have to shift and & the stuff. Though youd have to copy the data to resize the array, thats what'll happen when resizing a bank anyway.