Singletons take a reusable object and give it a single point of access for an application. Without awakening the debate over whether global state is good thing or bad thing I’m going to attempt to discuss singletons. I think it’s likely everyone will be familiar with is something along the lines of: Renderer::GetInstance()->Function();
This is often [...]
Monthly Archives: September 2008
Singletons in C++
Friday, September 26, 2008