patterns-discussion AT lists.siebelschool.illinois.edu
Subject: General talk about software patterns
List archive
- 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)
- Re: [patterns-discussion] deleting a Singleton, Peter Horan, 10/01/2004
- Re: [patterns-discussion] deleting a Singleton, Eric Y. Theriault, 10/02/2004
- <Possible follow-up(s)>
- Re: [patterns-discussion] deleting a Singleton, Carl G. Alphonce, 10/02/2004
- RE: [patterns-discussion] deleting a Singleton, Ashish Harigopal Poddar, 10/03/2004
- Re: [patterns-discussion] deleting a Singleton, Eric Y. Theriault, 10/03/2004
- RE: [patterns-discussion] deleting a Singleton, Sriram Gopalan, 10/04/2004
Archive powered by MHonArc 2.6.16.