is this healthy?

BlitzPlus Forums/BlitzPlus Programming/is this healthy?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

no.. they exist until either you delete them or the program ends at which point blitz will do a clean up.

eg.

createbank ()

; Do stuff

end

function createbank ()
blah = CreateBank (1024 )
end function

This code will call the function which will create the bank and assign the local variable blah to point to it.

at the end of the function the blah variable will cease to exist but the bank you reated is still there.. you just no longer have a way to access it.

When the program ends Blitz will do a clean up and delete the bank.

Hope that helps ( and I hope Im right ).