www.digitalmars.com         C & C++   DMDScript  

D - singleton with destruction order

reply =?iso-8859-1?Q?Miguel_Ferreira_Sim=F5es?= <kobold netcabo.pt> writes:
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi,
how can i do a singleton with a destruction order manager...!?
my problem is due to the fact that i cannot control the time moment when =
the singleton object is destroyed.

thanks,
Miguel Ferreira Sim=F5es
Mar 27 2004
parent Andrei Pamula <andrei.pamula web.de> writes:
On Sat, 27 Mar 2004 20:14:42 -0000, Miguel Ferreira Simões 
<kobold netcabo.pt> wrote:

 hi,
 how can i do a singleton with a destruction order manager...!?
Don't use a singleton.
 my problem is due to the fact that i cannot control the time moment when 
 the singleton object is destroyed.
This is a well known singleton issue.
Mar 31 2004