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 7,629 02-24-2022, 10:40 PM
Last Post: kyonides
Brick Common Event Library (Development + Brainstorm thread) PK8 3 9,762 02-11-2016, 09:25 PM
Last Post: JayRay
   What do you dislike in ATB Systems? DoubleX 18 25,310 06-13-2015, 05:03 AM
Last Post: DoubleX
   What Makes an Event System DerVVulfman 8 14,379 01-19-2010, 09:07 PM
Last Post: Bolt
   What is "event scripting?" PK8 11 18,195 12-19-2008, 11:20 PM
Last Post: PK8



Users browsing this thread: 1 Guest(s)