Category term for “global” and “local”
What is a term for the category of global and local in programming? For example I want to use local/global in my game, but I need a word that means global or local. The word be used like so:
The ____ is global.
For programmers
I'm trying to make an enumeration that uses Global and Local, except I need a word to categorize the enum.
Edit: To clarify why the answer is definitely scope: I am making a high score system and I would like there to be the local high score and the global high score.
In programming, scope is the term used to describe the parts of the program where a binding of a name to an entity - e.g. a variable - is valid.
range defines the area or sphere in which an activity takes place.
- the limits within which any fluctuation takes place.
- the limits within which a thing can function effectively - TFD
You have an answer, but as another option:
Domain
- the local domain
- the global domain
Or
- the domain is local
- the domain is global
I would say this depends heavily on the blank in your question.
In the problem domain you are modelling in your program, what exactly is it that has the property global or local? If it's variables, then it's scope. But if it's influence of characters (maybe you're building an RPG) reach or range etc. might be better words...
It's analogous to asking what's a good enum name for the values 1meters and 2meters — it depends on whether you're modelling the height of characters or radius of pillars.