🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #54

Re: static vals inside a class are unresolved (g++ 2.0/SunOS4.1.1)

#54
From: Tal Lewis Lancaster
Date: Sat, 11 Apr 1992 00:00
14 lines
1145 bytes
mccrory@tomato.fnal.gov (Elliott McCrory) writes:

>Seems like a kludge.  Why has static been abandoned?

Well, I got the idea of my so called "kludge" from p. 179 the ARM:

"A static member is not part of objects of a class.  Static members
of a global class have external linkage.  The declaration of a static
data member in its class declaration is NOT a definition.  A definition
is required elsewhere."

As a side note the "kludge" isn't needed when using ATT 3.0.

Tal
Technical Details
Message-ID: <1992Apr11.000057.4061@cco.caltech.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!tll
References: <MCCRORY.92Apr9161630@tomato.fnal.gov> <1992Apr9.234910.7629@cco.caltech.edu> <MCCRORY.92Apr10161734@tomato.fnal.gov>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!tll
From: tll@cco.caltech.edu (Tal Lewis Lancaster)
Subject: Re: static vals inside a class are unresolved (g++ 2.0/SunOS4.1.1)
Message-ID: <1992Apr11.000057.4061@cco.caltech.edu>
Sender: news@cco.caltech.edu
Nntp-Posting-Host: jomby
Organization: California Institute of Technology, Pasadena
References: <MCCRORY.92Apr9161630@tomato.fnal.gov> <1992Apr9.234910.7629@cco.caltech.edu> <MCCRORY.92Apr10161734@tomato.fnal.gov>
Distribution: gnu
Date: Sat, 11 Apr 1992 00:00:57 GMT
Lines: 15