🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

static in inline

#2240
From: Alexsander Krotoff
Date: Wed, 18 Oct 1995 16:15
26 lines
1586 bytes
Hello C++ gurus,

I know, this question is asked here some time ago, but I found
no changes in the October Working Draft and want to ask it again.

If the the static variable is defined in the body of `inline'
function, and compiler sucseed to substitute function body
sevral times, shall these function copyes share common
static variable? What is about initialization of this static
variable with non-constant? What shall happen, if the function
body is defined and substituted in the number of compilation
units?

If it was discussed before, are there any summary ?
Is it indeed well-defined in the working paper ?

Thank you.

--
Alexander N. Krotoff				<krotoff@such.srcc.msu.su>
Research Computer Center			[Moscow]939-2638
Moscow State University				MGU, SRCC room 316

[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <462qb5$ee1@alpha.phys.msu.su>
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage
From: krotoff@boy.nmd.msu.ru (Alexsander Krotoff)
Newsgroups: comp.std.c++
Subject: static in inline
Date: 18 Oct 1995 16:15:23 GMT
Organization: Research Computer Center, Moscow State University
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <462qb5$ee1@alpha.phys.msu.su>
Reply-To: krotoff@such.srcc.msu.su
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: boy.nmd.msu.ru
X-Newsreader: TIN [version 1.2 PL2]
Content-Length: 775
X-Lines: 22
Originator: clamage@taumet