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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1d575f572a099528 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-13 16:36:38 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wv9557@yahoo.com (Will) Newsgroups: comp.lang.ada Subject: Re: What is faster Ada or C? Date: 13 Dec 2001 16:36:37 -0800 Organization: http://groups.google.com/ Message-ID: <4a885870.0112131636.227e2521@posting.google.com> References: <9ujh51$k6m$1@wanadoo.fr> <3C0EF345.47BCC09@adaworks.com> <568ede3c.0112071202.56fc9f@posting.google.com> <3C13BC4A.1C1EBE8B@adaworks.com> <568ede3c.0112110814.1c31fd91@posting.google.com> NNTP-Posting-Host: 199.173.190.124 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1008290198 7076 127.0.0.1 (14 Dec 2001 00:36:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 14 Dec 2001 00:36:38 GMT Xref: archiver1.google.com comp.lang.ada:17898 Date: 2001-12-14T00:36:38+00:00 List-Id: hyrosen@mail.com (Hyman Rosen) wrote in message news:<568ede3c.0112110814.1c31fd91@posting.google.com>... > > Unless something has changed, C++ requires the full definition of the > > inlined function at the place where it is declared. > > That simply is not true. Just as I posted, the definition of an inline > function may be separate from its declaration. actually, main.cpp: inline int callme(); main() { callme(); } test.cpp: inline int callme() { return 0; } will not compile. Tested with g++ and Visual C++