Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!unixhub!ditka!comeau From: comeau@ditka.Chicago.COM (Greg Comeau) Newsgroups: comp.lang.c++ Subject: Re: Initializing Global Objects Message-ID: <39929@ditka.Chicago.COM> Date: 28 May 91 13:54:40 GMT References: <76813@brunix.UUCP> <1991May27.060310.16757@mathcs.sjsu.edu> <750@taumet.com> Sender: comeau@ditka.Chicago.COM (Greg Comeau) Reply-To: comeau@csanta.attmail.com (Greg Comeau) Organization: Comeau Computing Lines: 23 In article <750@taumet.com> steve@taumet.com (Stephen Clamage) writes: :Cay's analysis reflects current implementations, but not anything in the :language definition. The language definition makes no distinction between :the initialization of : int i = 1; // value can be part of load image :and : extern int j, k; : class C { C(int, int); ... }; : C c(j, k); // value cannot be part of load image :The requirement is merely that both initializations be complete before :the first statement of main() is executed. That also sorta reflects current implementation though as that is only 1/2 the requirement accto ARM p19: "Such initializations may 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." - Greg -- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 Producers of Comeau C++ 2.1 Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421 Voice:718-945-0009 / Fax:718-441-2310