🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: static in inline

#2259
From: john (j.d.) hickin
Date: Thu, 19 Oct 1995 16:49
18 lines
1329 bytes
I won't quote from the standard because I don't have a copy.

I will, however, express my opinion on what behavior makes sense.

The inline keyword is just a compiler hint and the implementation may choose to
ignore a hint at its discretion.  The case in hand is one where the compiler
must treat the case as an error (as, for example, does cfront) or where it must
bend over backwards to insure that only one version of the static variable is
produced.  This latter approach is too subtle for my liking, as you get into
initialization problems as your posting has implied.  

-- 
John Hickin      Bell-Northern Research, Montreal, Quebec
(514) 765-7924   hickin@bnr.ca
---
[ 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: <465lbj$sc0@bmtlh10.bnr.ca>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <462qb5$ee1@alpha.phys.msu.su>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 19 Oct 95 16:49:05 GMT
Approved: fjh@cs.mu.oz.au
X-Original-Date:  Thu, 19 Oct 1995 13:54:59 +0000
From: "john (j.d.) hickin" <hickin@bnr.ca>
Message-ID: <465lbj$sc0@bmtlh10.bnr.ca>
References: <462qb5$ee1@alpha.phys.msu.su>
Subject: Re: static in inline
Newsgroups: comp.std.c++
Organization: Bell-Northern Research
X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.01 9000/715)