Article View: gnu.g++.bug
Article #405static functions
From: Michael Tiemann
Date: Sun, 10 Sep 1989 02:07
Date: Sun, 10 Sep 1989 02:07
24 lines
1096 bytes
1096 bytes
Date: Sat, 9 Sep 89 16:51:31 PDT
From: keffer@sperm.ocean.washington.edu (Tom Keffer)
Michael,
This goes back to an earlier discussion we had as to whether
-finline-functions should be the default. Consider the following:
#ifdef DEBUG
#define Inline static
#else
#define Inline inline
class Foo {
void bar();
};
Inline bar() { /* a definition */ }
Is what you really mean ``Inline void Foo::bar ();''. If so I don't
see a problem with just #defining ``Inline'' to nothing, since the
return type will save your function from not having a return type.
Michael
Technical Details
Message-ID:
<8909100207.AA06064@teacake.sun.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!SUN.COM!tiemannReferences:
<8909092351.AA14187@sperm.ocean.washington.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!SUN.COM!tiemann From: tiemann@SUN.COM (Michael Tiemann) Newsgroups: gnu.g++.bug Subject: static functions Message-ID: <8909100207.AA06064@teacake.sun.com> Date: 10 Sep 89 02:07:32 GMT References: <8909092351.AA14187@sperm.ocean.washington.edu> Sender: daemon@tut.cis.ohio-state.edu Reply-To: tiemann@lurch.stanford.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 24