From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Optimising Elisp code Date: Fri, 05 Oct 2018 20:50:52 +0200 Organization: Aioe.org NNTP Server Message-ID: <865zyg448j.fsf@zoho.com> References: <638fb7dc-6fc5-4645-8793-97a00038a3a8@googlegroups.com> <86r2h44fqg.fsf@zoho.com> <86in2g4eq6.fsf@zoho.com> <86d0so48a6.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1538765604 20798 195.159.176.226 (5 Oct 2018 18:53:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2018 18:53:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 05 20:53:20 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8VDz-0005Fu-74 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2018 20:53:19 +0200 Original-Received: from localhost ([::1]:36599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8VG5-0000WS-Ln for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2018 14:55:29 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: xQsFb8j6c/kdg9AvIrnVFA.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Mail-Copies-To: never X-Notice: Filtered by postfilter v. 0.8.3 Cancel-Lock: sha1:GvwqL4dVWPQDf5FyqUTremcrd1o= Original-Xref: usenet.stanford.edu gnu.emacs.help:224007 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118133 Archived-At: Óscar Fuentes wrote: >>> Just in case any bystander finds this post: >>> don't rely on anything that is mentioned >>> above, nor for C++ `inline' keyword nor for >>> code inlining in general. >> >> I read it in this book: >> >> @book{cpp-direkt, >> author = {Jan Skansholm}, >> ISBN = {91-44-47931-X}, >> publisher = {Studentlitteratur}, >> title = {C++ direkt}, >> year = {1996} >> } > > The key data point there is "1996". But even > then things were not as simple as > you described. It was basically a translation of what it says. > Since long time ago C++ "inline" is really > about the ODR ("One Definition Rule"), not > about how the compiler generates code. I have now look it up in another book, namely @book{c-programming-language, author = {Bjarne Stroustrup}, ISBN = {0-201-53992-6}, publisher = {Addison Wesley}, title = {The C++ Programming Language}, year = 1992 } here it says much less, with no attempt to explain what actually "inline" means, still, it seems to contradict what you say, because it says the keyword inline is a "hint to the compiler" to generate the code inline rather than have the function called the usual way (page 124). -- underground experts united http://user.it.uu.se/~embe8573