Re:It's not what programming languages do, it's what they sh...
by mastrsushi on Friday March 27, 2020 @09:54AM
(#22702815)
If it's private in the class then why are you saying it's global?
Re:It's not what programming languages do, it's what they sh...
by nottorp on Friday March 27, 2020 @11:13AM
(#22703469)
"a game class object" is 99.95% likely to contain the whole game. Doesn't matter that it's labeled private, it's basically global to all the code of the ... game.
Re:It's not what programming languages do, it's what they sh...
by mastrsushi on Friday March 27, 2020 @11:45AM
(#22703851)
> 99.95% likely to contain the whole game
That doesn't sound like a wise assumption. It is common to have the actual engine of the game, and even the game itself separate from other architectural components.
That's still a global, except now it has lipstick.