Path: utzoo!attcan!utgpu!watmath!att!cbnewsl!strange From: strange@cbnewsl.ATT.COM (philip.e.brown) Newsgroups: comp.lang.c++ Subject: Re: Allowing only one instantiation of a class Message-ID: <2283@cbnewsl.ATT.COM> Date: 13 Oct 89 22:48:48 GMT References: <14092@well.UUCP> Reply-To: strange@cbnewsl.ATT.COM (philip.e.brown,sf,) Organization: AT&T Bell Laboratories Lines: 14 In article <672@suntops.Tops.Sun.COM> rdas@hatter.Tops.Sun.COM (Robin Das) writes: > >How do you allow only one instantation of a class across a system? If you can name the instantiation, it's as simple as: class { /*...*/ } instance; Since you haven't named the type, there is no handle for additional instances. --------- Phil Brown strange@attunix.att.com