Hrm.. I thought that globals were allocated in RAM, whereas locals were allocated on the stack.. wouldn't this make locals considerably faster to use? I'm not sure why you would ever want to use lots of globals, really. (Although I could be wrong)
As far as avoiding globals.. well.. not really sure how that can be done without having somewhere else to store the information. (As Strider suggests.. types aren't necessarily required for every little piece of data you need to store.) I *have* heard of people placing literally everything in a type though, so I guess ultimately it's up to what you prefer.
As far as avoiding globals.. well.. not really sure how that can be done without having somewhere else to store the information. (As Strider suggests.. types aren't necessarily required for every little piece of data you need to store.) I *have* heard of people placing literally everything in a type though, so I guess ultimately it's up to what you prefer.