Settings object with singleton pattern
Posted
by
axis
on Game Development
See other posts from Game Development
or by axis
Published on 2012-10-09T13:48:20Z
Indexed on
2012/10/09
15:59 UTC
Read the original article
Hit count: 176
I need to build an object that will have only one instance because this Object is dedicated to the storage of vital settings for my application and I would like to avoid a misuse of this type or a conflict at run-time.
The most popular solution for this, according to the internet, is the Singleton pattern. But I would like to know about other ideas or solutions for this; also I would like to know if other solutions can be much more easy to grasp for an user of this hypothetical library.
Thanks.
© Game Development or respective owner