Programming style, avoiding globals.

Blitz3D Forums/Blitz3D Programming/Programming style, avoiding globals.

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.

That's surely very fast, and of course, whereever locals can be used, they should be used, especially when they are initialized in a function anyway. But when you need the value of it over multiple function calls or in multiple functions, it may be pretty slow to store and restore them, just to be able to use locals. But of course, the can be globals, arrays, types, or even bank entries.

Wouldn't that be a challenge for you, make a program with banks only (well, byside the neccessary handles, like bank handles). that would feel kind of like ASM coding.