From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3a9b49a9162025eb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-09 21:12:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!newsfeed1.easynews.com!easynews.com!easynews!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: Richard Riehle Newsgroups: comp.lang.ada Subject: Re: Bye-bye Ada ? (Ada95 Wholesale Changes?) Date: Sun, 09 Feb 2003 21:20:56 -0800 Organization: AdaWorks Software Engineering Message-ID: <3E4736B8.1A90C349@adaworks.com> References: <3E3B7BB5.A1A070@adaworks.com> <3NY_9.9226$x63.6255@nwrddc01.gnilink.net> <3E40A07A.CD174746@adaworks.com> <1044457651.769640@master.nyc.kbcfp.com> <3E42A61C.20905@cogeco.ca> <3E432DD4.7F256C85@adaworks.com> <3E43FA31.9873C5AA@adaworks.com> <3E44A869.DDB2352@adaworks.com> <7dr1a.10399$F25.4223@nwrddc02.gnilink.net> Reply-To: richard@adaworks.com NNTP-Posting-Host: 3f.bb.89.b6 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 10 Feb 2003 05:12:12 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:33944 Date: 2003-02-10T05:12:12+00:00 List-Id: Hyman Rosen wrote: > This is simply false. C++ requires that if you call an inline function, > the definition of that function must appear in the translation unit that > contains the call. It is not required to appear in the class definition, > nor must it appear when defining derived classes. The stated consequences > are thus also false. Richard, you are confusing typical practice with > actual requirements. 1) Would you care to comment on why this is typical practice. 2) Can one declare a function as inline, or must one include its full definition when it is made inline? 3) In Ada, the equivalent of a declaration can be made inline, in the specification. I believe, if I am reading Stroustrup correctly, and, yes, it seems to be typical practice, any declaration of an inline function (as inline) must also be a definition. If that inline function is declared anywhere in the source code, it must be a full definition. Richard Riehle