Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Singletons

Name: Anonymous 2009-01-09 5:18

A toast for one of my favorite ways to create and interact with things. I love you, singleton. And there's only one of you.

Name: Anonymous 2009-01-09 13:16

Using globals is for fags as the object does not belong in the global namepsace. Also, there is little you can do with resource allocation with a global.

Using static members is super faggy as the singleton pattern is poorly named. Its aim is to not just restrict the number of instances to 1. Its aim is to just restrict the number of possible instances to some number. Sometimes that number will be 1.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List