boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - underscore usage in C++ name
相关主题
Call assembly in c++ under linux
大家programming时怎么命名?
Angular 2像Python 3一样流行不动的可能性多大?
Can someone help me a quick regex?
请用过JAXWS和JAXB的赐教更改service method名字
Javascript确实是最优秀的语言之一
求教一个matlab和.net整合的问题
JavaScript 有没有 optional Type 或者 JSON field 校验
平生不学fp 纵称程序员也枉然
请问haskell中的underscore
相关话题的讨论汇总
话题: underscore话题: int话题: reserved话题: name
进入Programming版参与讨论
1 (共1页)
g*********s
发帖数: 1782
1
17.6.3.3.2 Global names [global.names]
Certain sets of names and function signatures are always reserved to the
implementation:
— Each name that contains a double underscore _ _ or begins with an
underscore followed by an uppercase letter (2.12) is reserved to the
implementation for any use.
— Each name that begins with an underscore is reserved to the
implementation for use as a name in the global namespace.
what does "implementation" mean here?
is the following a problem?
class X {
int __x;
int _X;
int _x;
int x_;
};
g*********s
发帖数: 1782
2
17.6.3.3.2 Global names [global.names]
Certain sets of names and function signatures are always reserved to the
implementation:
— Each name that contains a double underscore _ _ or begins with an
underscore followed by an uppercase letter (2.12) is reserved to the
implementation for any use.
— Each name that begins with an underscore is reserved to the
implementation for use as a name in the global namespace.
what does "implementation" mean here?
is the following a problem?
class X {
int __x;
int _X;
int _x;
int x_;
};
r****t
发帖数: 10904
3
ding
I guess implementation means the compiler, as you see these names in the
libstdc++ headers so yes in the example class it would a problem (at least
in terms of clarity).

the

【在 g*********s 的大作中提到】
: 17.6.3.3.2 Global names [global.names]
: Certain sets of names and function signatures are always reserved to the
: implementation:
: — Each name that contains a double underscore _ _ or begins with an
: underscore followed by an uppercase letter (2.12) is reserved to the
: implementation for any use.
: — Each name that begins with an underscore is reserved to the
: implementation for use as a name in the global namespace.
: what does "implementation" mean here?
: is the following a problem?

1 (共1页)
进入Programming版参与讨论
相关主题
请问haskell中的underscore
JS总是有点别扭
Angular放弃service直接用controller如何
golang里面 函数received type关于指针和非指针有什么难的。
用node怎么把多个mysql query 的结果合起来
palantir的stack
js 的typeof基本上是broken
今天看一段spark程序快吐了
有人用angular 2吗? ionic 2的alpha出来了
主页上有20个js文件,怎么回事?
相关话题的讨论汇总
话题: underscore话题: int话题: reserved话题: name