patterns-discussion AT lists.siebelschool.illinois.edu
Subject: General talk about software patterns
List archive
- From: "E. Segura" <esegura2002ar AT yahoo.com.ar>
- To: patterns-discussion AT cs.uiuc.edu
- Subject: [patterns-discussion] deleting a Singleton
- Date: Fri, 24 Sep 2004 23:01:39 -0300 (ART)
- List-archive: <http://mail.cs.uiuc.edu/pipermail/patterns-discussion>
- List-id: General talk about software patterns <patterns-discussion.cs.uiuc.edu>
Hi, list.
When using the Singleton pattern...
Who should delete the _instance?
Should I ask for it and delete it myself?
( i.e. delete(myClass::getInstance()) ????? )
or the class should keep a "reference count" and other
classes should inform when the don't use the instance
reference anymore.
Thanks!
___________________________________________________________
100mb gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar
- [patterns-discussion] Doubts regarding Strategy Pattern, souravm, 09/23/2004
- Re: [patterns-discussion] Doubts regarding Strategy Pattern, Ralph Johnson, 09/24/2004
- [patterns-discussion] deleting a Singleton, E. Segura, 09/24/2004
- Re: [patterns-discussion] deleting a Singleton, Eric Y. Theriault, 09/24/2004
- <Possible follow-up(s)>
- RE: [patterns-discussion] Doubts regarding Strategy Pattern, sayan.mukherjee, 09/23/2004
- RE: [patterns-discussion] Doubts regarding Strategy Pattern, Sriram Gopalan, 09/23/2004
Archive powered by MHonArc 2.6.16.