Skip to Content.
Sympa Menu

patterns-discussion - Re: [patterns-discussion] deleting a Singleton

patterns-discussion AT lists.siebelschool.illinois.edu

Subject: General talk about software patterns

List archive

Re: [patterns-discussion] deleting a Singleton


Chronological Thread 
  • From: Peter Horan <peter AT deakin.edu.au>
  • To: patterns-discussion AT cs.uiuc.edu
  • Subject: Re: [patterns-discussion] deleting a Singleton
  • Date: Sat, 02 Oct 2004 14:44:43 +1000
  • List-archive: <http://mail.cs.uiuc.edu/pipermail/patterns-discussion>
  • List-id: General talk about software patterns <patterns-discussion.cs.uiuc.edu>

Eric Y. Theriault wrote:

E. Segura wrote:

When using the Singleton pattern...

Who should delete the _instance?

Should I ask for it and delete it myself?
( i.e. delete(myClass::getInstance()) ????? )

Perhaps, logically, a singleton should not be destroyed, otherwise, it is possible to create a different instance of the singleton.
--
Peter Horan School of Information Technology
peter AT deakin.edu.au
Deakin University
+61-3-5227 1234 (Voice) Geelong, Victoria 3217, AUSTRALIA
+61-3-5227 2028 (FAX) http://www.cm.deakin.edu.au/~peter

-- The Eiffel guarantee: From specification to implementation
-- (http://www.cetus-links.org/oo_eiffel.html)





Archive powered by MHonArc 2.6.16.

Top of Page