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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham 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-13 08:40:33 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "Martin Krischik" Newsgroups: comp.lang.ada Subject: Re: Bye-bye Ada ? (Ada95 Wholesale Changes?) Date: Wed, 12 Feb 2003 20:04:52 +0100 Organization: never organized Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 X-Trace: news.t-online.com 1045154293 03 21709 o7ngE1CVSdY+8y 030213 16:38:13 X-Complaints-To: abuse@t-online.com X-Sender: 05341395658-0001@t-dialin.net User-Agent: Pan/0.13.0 (The whole remains beautiful) Xref: archiver1.google.com comp.lang.ada:34059 Date: 2003-02-12T20:04:52+01:00 List-Id: On Fri, 07 Feb 2003 22:49:14 +0000, Richard Riehle wrote: > Kevin Cline wrote: > > In C++, an inline function must be fully implemented in the class > specification. This is not true as others have pointed out. In fact you can't do this if you want virtual inlines. For virtual inlines you have to do it outside the class definition - and you have to provide a non inline version for the virtual function table. usualy you it with some ugly #if #endif: #if defined (_XXX_CPP_) # define inline #endif inline void MyClass::myFunc () { } #if defined (_XXX_CPP_) # undef inline #endif And yes: the Ada solution is so much better. Regards Martin -- Martin Krischik mailto://Martin@krischik.com http://www.martin.krischik.com