public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: dewar@gnat.com (Robert Dewar)
Cc: martin@MPA-Garching.MPG.DE, gcc@gcc.gnu.org
Subject: Re: definition of "implicit" inline?
Date: Thu, 31 Jul 2003 11:04:00 -0000	[thread overview]
Message-ID: <m3u193j8d8.fsf@uniton.integrable-solutions.net> (raw)
In-Reply-To: <20030731101937.B257DF2E19@nile.gnat.com>

dewar@gnat.com (Robert Dewar) writes:

| > Let's keep it simple and straight.  The example you gave is just that
| > of an inline function, not implicit inline function.  There is nothing
| > implicit about it.  It is an alternate syntax for defining an inline
| > function.  Not a syntax for defining an implicit inline function.
| 
| I find this exegesis confusing and self serving.

No it is not exegis not confusing neither self servin, unless you don't 
know C++. 

| It seems quite fine to
| refer to the form without inline has being implicitly inlined. Whether the
| two forms should or should not be treated differently is another matter.

In C++, they are no different.  

| One might ask *why* are there two forms. Perhaps someone should quote the
| exact language from the standard here.

I already give the reasons at multiple occasions in this debate with
the appropriate quotes.
The reason is mostly historic (see "The Design and Evolution of C++",
section "Run-Time Efficiency").
When inlining was orginally introduced in C with Classes, the only
syntax available was definition within the class declaration and
inlining was considered only for member functions.  Later, the keyword
"inline" was introduced to permit inlining request for functions not
defined within a class.  There is no slight difference nor implication
that one form is superior to the other in terms of request.

-- Gaby

  reply	other threads:[~2003-07-31 10:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-31 11:02 Robert Dewar
2003-07-31 11:04 ` Gabriel Dos Reis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-31 13:53 Robert Dewar
2003-07-31 13:58 ` Gabriel Dos Reis
2003-07-31 14:00   ` Gabriel Dos Reis
2003-07-31 13:12 Robert Dewar
2003-07-31 13:37 ` Gabriel Dos Reis
2003-08-02 17:21 ` Marc Espie
2003-07-31 11:59 Robert Dewar
2003-07-31 12:41 ` Gabriel Dos Reis
2003-07-31 10:02 Martin Reinecke
2003-07-31 10:08 ` Gabriel Dos Reis
2003-07-31 10:50 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3u193j8d8.fsf@uniton.integrable-solutions.net \
    --to=gdr@integrable-solutions.net \
    --cc=dewar@gnat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=martin@MPA-Garching.MPG.DE \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).