Simple question

Miscellaneous Forums/General Discussion/Simple question

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.

I thought about that, but was thinking that might make it harder to read the code, as you'd always have to look at the parameter to see what it was really doing. Of course, that's not so bad, but the biggest drawback to that method is that, I imagine it'll make the function calls quite a bit longer, which
might get annoying since all variable updates are going to be
going through that function.

Also, I don't know if it would amount to much but the additional overhead of the select/case might make a small impact as these functions will undoubtedly be called many many times per update.

Hmm, thanks for the response though. I will ponder that some more. One nice thing about that method is the benefit of being able to simply change a global flag variable to for instance, disallow the "adding" of variables after some point in the game. I.e, you could, for whatever reason necessary during testing, disable the ability to add new variables by changing the ADD_VARIABLE global flag to say "MODIFY_VARIABLE", and then all of the calls that specified the ADD_VARIABLE flag wouldn't need to actually be changed, although they would no longer actually be capable of adding a variable

(ugh, I hope that was clear I'm extremely tired and feel like I can't express myself well at all right now.)