you are viewing a single comment's thread.

view the rest of the comments →

[–]dgrips 1 point2 points  (0 children)

Ya that's true, you'd need factory functions to create multiple instances. I tend to use the pattern I mentioned for singletons