Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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