Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 When should I use global, instance, local, and constants in event systems?
#7
Global variables will allocate the same amount of memory as any other variable type.

In OOP, a global variable is a highly unmanaged piece of data that can be hard to keep track of especially as your program grows. It would be better to define member variables for each class that would use that data. Globals aren't BAD THINGS but you should reserve them for data that would best be global (a counter for debugging purposes, defined constants).

Tell me what an event system is. Is it just making customized content using events? Not really sure what you're trying to say in that post.
Reply }


Messages In This Thread
When should I use global, instance, local, and constants in event systems? - by MARBLES - 12-28-2008, 07:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Popular Battle Systems kyonides 6 6,457 02-24-2022, 10:40 PM
Last Post: kyonides
Brick Common Event Library (Development + Brainstorm thread) PK8 3 9,088 02-11-2016, 09:25 PM
Last Post: JayRay
   What do you dislike in ATB Systems? DoubleX 18 22,397 06-13-2015, 05:03 AM
Last Post: DoubleX
   What Makes an Event System DerVVulfman 8 13,027 01-19-2010, 09:07 PM
Last Post: Bolt
   What is "event scripting?" PK8 11 16,410 12-19-2008, 11:20 PM
Last Post: PK8



Users browsing this thread: