[Home] [Groups] - Message: [Prev in Group] [Next in Group]
11033: Re: [MUD-Dev] Singleton design pattern (OT?)
[Full Header] [Plain Text]
From: Cynbe ru Taren <cynbe@muq.org>
Newsgroups: nu.kanga.list.mud-dev
Date: Tue, 31 Aug 1999 15:33:28 -0500
Organization: Kanga.Nu
|| Eli Stevens once said:
||
|| I have been working on the problem of how to best implement the Singleton
|| class [1] from _Design Patterns_, by Gamma, et al. in C++. I have wasted a
|| lot of time fooling around with this, and now that I have an answer that I
|| think I like, I am going to throw it out in hopes that someone else will be
|| saved a bit of time. :)
Last company I worked at (Activerse, a Java outfit) the guys were threatening to
strangle the next person to implement a Singleton in company code. Seems like
in practice most of them turn out to need multiple instances sooner or later,
and recoding to allow this is a pain.
_______________________________________________
MUD-Dev maillist - MUD-Dev@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev