From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200309161516.h8GFG2j02250@augusta.math.psu.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] g++ In-Reply-To: Your message of "Tue, 16 Sep 2003 09:17:52 +1200." <5.1.1.6.0.20030916090722.00a98c58@pop.monitorbm.co.nz> From: Dan Cross Date: Tue, 16 Sep 2003 11:16:02 -0400 Topicbox-Message-UUID: 3ae167c0-eacc-11e9-9e20-41e7f4b1d025 > That, and inventing the "Singleton" design pattern, for use on those > occasions when someone's holding a gun to your head trying to force you to > create an unnecessary second instance of a class. I invented the > "Doppelganger" and "Trifecta" patterns, for when you need exactly two or > three instances of a class, but they've never caught on. I like `trifecta'. I've never had much luck at the aquaduct, though. I'm not sure they invented the idea of a singleton, though (and I agree; it's actually useful). I believe they themselves say that nothing in the book was new, it was just a collection of the better known, and useful constructions. - Dan C.