From 8484821688688078840
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,deec59fd1ee296e8
X-Google-Attributes: gidf78e5,public
From: clerc@gla.ecoledoc.ibp.fr (Fabrice Clerc)
Subject: Re: init of static objects
Date: 1995/05/26
Message-ID: <3q550m$b02@vishnu.jussieu.fr>#1/1
X-Deja-AN: 103365943
distribution: world
sender: clerc@donald ()
references: <dent-2505952315070001@adsoftware.highway1.com.au> <3q2cig$81a@engnews2.Eng.Sun.COM>
content-type: text/plain; charset=iso-8859-1
organization: Universites Paris VI/Paris VII - France
mime-version: 1.0
newsgroups: comp.std.c++

What about unreferenced global objects whose ctors have side-effects ?

Does the WP specify whether unreferenced global objects whose ctors have
side effects must be constructed ? On some systems, these objects
are never constructed (especially if you place them in libraries) !

[context: I use global objects to register 'pseudo-constructors'
(a function which simply returns a new instance). The application
never knows the 'real type' of the object but interacts with it using
virtual functions only - these objects have a common base class].

thanks

---
Fabrice Clerc
clerc@gla.ecoledoc.ibp.fr



