(ref.doc)jason 180395
Next jason 140395
Prev: fjh 130395
Up: Usenet
From: [email protected] (Jason Merrill)
Newsgroups: comp.std.c++
Subject: Re: Implicit constructors and destructors
Date: 18 Mar 1995 13:34:14 GMT
Organization: Cygnus Support, Mountain View, CA
3.6.2 Initialization of non-local objects [basic.start.init]
+------- BEGIN BOX 17 -------+
This is still under active discussion by the committee.
+------- END BOX 17 -------+
1 The initialization of nonlocal static objects (_basic.stc_) in a
translation unit is done before the first use of any function or
object defined in that translation unit. Such initializations
(_dcl.init_, _class.static_, _class.ctor_, _class.expl.init_) can be
done before the first statement of main() or deferred to any point in
time before the first use of a function or object defined in that
translation unit. The default initialization of all static objects to
zero (_dcl.init_) is performed before any other initialization.
Static objects initialized with constant expressions (_expr.const_)
are initialized before any dynamic (that is, run-time) initialization
takes place. The order of initialization of nonlocal static objects
defined in the same translation unit is the order in which their defi-
nition appears in the translation unit. No further order is imposed
on the initialization of objects from different translation units.
automatically generated by info2www version 1.2.2.8