Path: chuka.playstation.co.uk!news From: "Derek da Silva" Newsgroups: scee.yaroze.freetalk.english Subject: Re: C++ Question Date: Fri, 13 Apr 2001 00:47:52 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 18 Message-ID: <9b5eve$9sk6@www.netyaroze-europe.com> References: <9b2j3f$9sk3@www.netyaroze-europe.com> <01c0c2d1$878704a0$030be4d5@pal-s-omnibook> <9b2m86$9sk4@www.netyaroze-europe.com> NNTP-Posting-Host: usr707-avo.cableinet.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Hi I'd never heard of the Singleton design pattern until now (shows how much I know about C++), but I thought it sounded interesting as I was attempting to do something similar with the screen class in xenon. I see using a singleton is far better, as this prevents the creation of multiple screen objects; before I was just preventing the screen setup code in the constructor running more than once. Much neater. http://www.inquiry.com/techtips/cpp_pro/10min/10min0200.asp cheers guys Derek