C11最新变化
C1x 已成为 ISO/IEC 9899:2011 又名 C11。
有谁知道 2011 年 4 月草案 n1570?
ETA:来自伦敦的委员会会议记录(2011 年 3 月)(应包含在 n1570 中)此处,来自华盛顿特区(2011 年 10 月)此处;我认为 DC 会议纪要中已接受的更改列表应该涵盖所有内容。
C1x has become ISO/IEC 9899:2011 aka C11.
Does anyone know what changes (if any) there are in the Standard from the April 2011 draft n1570?
ETA: There are the Committee minutes from London (March 2011) (which should be included in n1570) here, and from Washington, DC (October 2011) here; I suppose a list of accepted changes in the DC minutes should cover things.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我今天刚刚了解到 N1570 和最终的 C11 标准 (ISO/IEC 9899:2011 (E)) 之间存在一个(有些)重大变化。
在 N1570 中,6.3.2p3 说:
包含
_Alignof
是一个错误,因为一元表达式的语法允许但不允许。
已发布的 C11 标准纠正了此错误并恢复为 C99 措辞:
更多信息:ISO C 委员会成员 Larry Jones 最近在 comp.std.c 上发布了一篇有关 N1570 与已发布标准之间差异的帖子,其中写道:
消息 ID:
<[电子邮件受保护]>
这是该帖子如 groups.google.com 上所示。
I just learned today that there was one (somewhat) significant change between N1570 and the final C11 standard (ISO/IEC 9899:2011 (E)).
In N1570, 6.3.2p3 says:
The inclusion of
_Alignof
was an error, since the syntax of a unary-expression permitsbut not
The released C11 standard corrects this error and reverts to the C99 wording:
More information: in a recent posting to comp.std.c about differences between N1570 and the released standard, Larry Jones, a member of the ISO C committee, wrote:
Message-ID:
<[email protected]>
Here's the thread as seen on groups.google.com.
Jens Gustedt 在评论中回答:
Answered by Jens Gustedt in the comments:
ISO 已批准并发布了 C 编程语言的新 C11 (C1x) 标准 ISO/IEC 9899:2011。与之前的标准 (C99) 相比的主要变化,如 C11 Wikipedia 文章,如下:
从 ISO 网站您可以购买完整发布的标准。以下是摘自 ISO 站点的摘要:
ISO has ratified and published as ISO/IEC 9899:2011 the new C11 (C1x) standard for the C programming language. The major changes from the previous standard (C99), as written in the C11 Wikipedia article, are the following:
From the ISO site you can buy the full published standard. Here is an abstract taken from the ISO site: