🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Scope of static member initializers

#257
From: Bjarne Stroustrup
Date: Wed, 01 Aug 1990 12:42
18 lines
1290 bytes

The initializer for a static member IS in the scope of the class
of the object being initialized. See section 8.4 of the manual
(page 150 of the ARM).

A general plea: I realize that many of you haven't yet managed to
get your hands on a copy of the AT&T 2.1 reference manual or
Ellis&Stroustrup: The Annotated C++ Reference Manual, Addison-Wesley
(commonly referred to as the ARM), but please try to remember that
this is comp.STD.c++ and try to support arguments/requests with
references to the most recent draft working document (currently
that reference manual - AT&T 2.1 and the reference manual proper
in the ARM are identical).

The point is that this would minimize confusion, especially confusion
arising from people referring to different documents as ``the manual''
and different implementations as ``the compiler.''
Technical Details
Message-ID: <11116@alice.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!dptg!ulysses!andante!alice!bs
References: <1990Aug1.030632.2273@agate.berkeley.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!dptg!ulysses!andante!alice!bs
From: bs@alice.UUCP (Bjarne Stroustrup)
Newsgroups: comp.std.c++
Subject: Re: Scope of static member initializers
Summary: plea for precision
Message-ID: <11116@alice.UUCP>
Date: 1 Aug 90 12:42:49 GMT
References: <1990Aug1.030632.2273@agate.berkeley.edu>
Organization: AT&T Bell Laboratories, Murray Hill NJ
Lines: 18