Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vocabulary question: out-of-line vs deported

28 views
Skip to first unread message

lightn...@gmail.com

unread,
Jul 24, 2019, 2:50:45 AM7/24/19
to
Hello, don’t know if that’s the best place to ask.

I was looking into behavior of various declaration and definition of methods in class, and out of class. I noticed the terminology used in clang is “out-of-line”.
Example:
out-of-line declaration of a member must be a definition [-Wout-of-line-declaration]
gcc says something a bit weirdly worded:
error: declaration of 'blah' outside of class is not definition [-fpermissive]

Before; I could swear the official word for that was “deported definition”; and now I can’t find this used anywhere. I’m quite surprised. I can’t even find the source that gave me this impression anymore.
But instead, I observe 2 compilers with basically no word for that particular language construct, and instead recourse to a circumlocution “outside of class” or “out-of-line”.
Isn’t it better to all agree that this is “deported” so we have a specific terminology ?
I checked the draft for C++ 2017 in 12.2.1/[class.mfct] and there is nothing special either. The closest to a specific expression used, is “lexically outside”. bah…

Any thought ?

Alf P. Steinbach

unread,
Jul 24, 2019, 4:59:28 AM7/24/19
to
I generally refer to method definitions outside of a class definition,
as out-of-class definitions.

They can be inline or not, so I find it less than clear to refer to them
as sort of the opposite of inline (namely “out-of-line”).

I wouldn't offhand understand “deported”. Now that you've mentioned it I
may remember it. Or not. ;-)


Cheers!, & look out for orbital debris,

- Alf

Paavo Helde

unread,
Jul 24, 2019, 6:59:50 AM7/24/19
to
On 24.07.2019 9:50, lightn...@gmail.com wrote:
> Hello, don’t know if that’s the best place to ask.
>
> I was looking into behavior of various declaration and definition of methods in class, and out of class. I noticed the terminology used in clang is “out-of-line”.
> Example:
> out-of-line declaration of a member must be a definition [-Wout-of-line-declaration]
> gcc says something a bit weirdly worded:
> error: declaration of 'blah' outside of class is not definition [-fpermissive]
>
> Before; I could swear the official word for that was “deported definition”; and now I can’t find this used anywhere. I’m quite surprised.

I do not recall the word "deported" used in the context of C++ or any
other computer language which I am familiar with, ever.

Google search hints this term might have been used in Portuguese. Or
maybe then not.

Keith Thompson

unread,
Jul 24, 2019, 3:29:13 PM7/24/19
to
FWIW, the string "deport" (case-insensitive) does not appear anywhere in
the gcc source tree.

--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
0 new messages