Bizarre, Evil, or Funny Code

Miscellaneous Forums/General Discussion/Bizarre, Evil, or Funny Code

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.

Several of my Blitz3D programs have this sort of thing ("Evil"):
Global colorpulse#, dcolor# ;these should be static locals, but Blitz doesn't do static locals
Instead of going neatly inside the function, they had to completely break scope and go outside as main Globals. Having static locals is one of the many things that I love about BlitzMax (using the term "Global" for them within the function is fine: "a rose by any other name would smell as sweet").