🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #378

Implementing statics with constructors

#378
From: Hyman Rosen
Date: Tue, 04 Nov 1986 02:22
15 lines
1050 bytes
It is clear from the C++ book that static variables of types with
constructors are initialized by calls to the constructors at some
point before the call to main(). I would like to know how the
various implementations of C++ arrange for this to happen. It seems
to be difficult to do without a system of multiple code segments
(where all initialization code could be brought together). Other-
wise, I can only think of expensive "is this the first time?"
checking.
-- 


								- Hymie

		...{decvax,ihnp4,ucbvax}!allegra!phri!orville!dvm!hymie
Technical Details
Message-ID: <5@dvm.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!cmcl2!phri!orville!dvm!hymie

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!cmcl2!phri!orville!dvm!hymie
From: hymie@dvm.UUCP (Hyman Rosen)
Newsgroups: net.lang.c++
Subject: Implementing statics with constructors
Message-ID: <5@dvm.UUCP>
Date: Mon, 3-Nov-86 21:22:07 EST
Article-I.D.: dvm.5
Posted: Mon Nov  3 21:22:07 1986
Date-Received: Tue, 4-Nov-86 10:41:23 EST
Reply-To: hymie@dvm.UUCP (Hyman Rosen)
Distribution: na
Organization: Philon, Inc. (NY, NY)
Lines: 15