Skip to Content.
Sympa Menu

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

patterns-discussion AT lists.siebelschool.illinois.edu

Subject: General talk about software patterns

List archive

[patterns-discussion] deleting a Singleton


Chronological Thread 
  • 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





Archive powered by MHonArc 2.6.16.

Top of Page