🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #127

Re: Does 'inline' imply 'static'?

#127
From: Andrew Koenig
Date: Sun, 30 Mar 1986 16:22
7 lines
894 bytes
> If a function is declared "inline" in C++, does/should this mean that
> the function is implicitly "static" (i.e., known only within the source
> file in which it appears)?

Nope.  If you don't make it static as well, the compiler must
generate conventional code for it as well as any inline expansions
it does, in case it's called from another file.
Technical Details
Message-ID: <5221@alice.uUCp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark
References: <10252@ucla-cs.ARPA>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark
From: ark@alice.UucP (Andrew Koenig)
Newsgroups: net.lang.c++
Subject: Re: Does 'inline' imply 'static'?
Message-ID: <5221@alice.uUCp>
Date: Sun, 30-Mar-86 11:22:36 EST
Article-I.D.: alice.5221
Posted: Sun Mar 30 11:22:36 1986
Date-Received: Tue, 1-Apr-86 05:23:58 EST
References: <10252@ucla-cs.ARPA>
Organization: Bell Labs, Murray Hill
Lines: 7