4 ms·
So, have we decided on what would be a better approach for storing global state? Static variables and methods? Pass the instance down to all children?
by aliston 13y ago
So, have we decided on what would be a better approach for storing global state?
Static variables and methods? Pass the instance down to all children?
- mattgreenrocks 13y agoIt seems like there's no hard and fast rule. I dislike singletons, but will gladly make a static method + static var from time to time.