- 论坛徽章:
- 0
|
本帖最后由 幻の上帝 于 2011-02-23 18:46 编辑
第一个是不算,
第二个应该是算的,不过不太确定。
zhaohongjian000 发表于 2011-02-23 12:16
我也是这么(包括“不太确定”)认为的……
回复 68# OwnWaterloo
呃,我指的是这个:
ISO C++03 3.3.5
The outermost declarative region of a translation unit is also a namespace, called the global namespace. A
name declared in the global namespace has global namespace scope (also called global scope). The potential
scope of such a name begins at its point of declaration (3.3.1) and ends at the end of the translation unit
that is its declarative region. Names with global namespace scope are said to be global.
关于anonymous namespace这个我知道,你说的没错……(不过有点奇怪标准的措辞,用unnamed而不用anonymous,倒是union是用anonymous的……)
提这两个问题是想确定一下C里面找不找得到C++的global (namespace) scope的等价物…… |
|