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
[EMAIL PROTECTED] 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)

_______________________________________________
patterns-discussion mailing list
[EMAIL PROTECTED]
http://mail.cs.uiuc.edu/mailman/listinfo/patterns-discussion

Reply via email to