Path: 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 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