🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #784

ARM on order of static initialization

#784
From: Per Bothner
Date: Tue, 08 Jan 1991 21:26
16 lines
1193 bytes
I know the issue of the order of initialization of static
variables is an old one, but I cannot find an answer in the ARM.

Initialization of non-local statics is discussed in ARM 3.4.
Near the end of p.19 it says "No further order is imposed on
the initialization of objects from different translation
units." This (together with the 2nd sentence of para 2
on p. 20) implies that there *is* an order imposed on the
initialization of objects from the *same* translation unit.
But this order is nowhere defined, as far as I can tell.
(Certainly not in the last non-bullet para on p.19, where
it would belong.) Am I missing something, or is the ARM?
-- 
	--Per Bothner
bothner@cs.wisc.edu Computer Sciences Dept, U. of Wisconsin-Madison
Technical Details
Message-ID: <1991Jan8.212604.29707@spool.cs.wisc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!sevenlayer.cs.wisc.edu!bothner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!sevenlayer.cs.wisc.edu!bothner
From: bothner@sevenlayer.cs.wisc.edu (Per Bothner)
Newsgroups: comp.std.c++
Subject: ARM on order of static initialization
Message-ID: <1991Jan8.212604.29707@spool.cs.wisc.edu>
Date: 8 Jan 91 21:26:04 GMT
Sender: news@spool.cs.wisc.edu (The News)
Organization: U of Wisconsin CS Dept
Lines: 16