免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: g050649
打印 上一主题 下一主题

C深度剖析 [复制链接]

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
261 [报告]
发表于 2012-06-21 22:34 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
262 [报告]
发表于 2012-06-21 22:39 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
263 [报告]
发表于 2012-06-21 22:58 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
264 [报告]
发表于 2012-06-21 23:01 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
265 [报告]
发表于 2012-06-21 23:51 |只看该作者
回复 276# 幻の上帝


    如果我没翻译错的话,这句话的意思conforming implementation 至少产生一个诊断消息,如果 preprocessing translation unit or translation unit 产生语法错误,即使这个行为呗明确 undefined or implementation-defined. 其他环境不产生Diagnostic messages


an implementation is free to produce any number of diagnostics as long as a valid program is still correctly translated

这句话是说明可以自由产生diagnostics 只要 a valid program is still correctly translated

哪里说implementation-defined 不许的产生diagnostics 了????

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
266 [报告]
发表于 2012-06-22 07:35 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
267 [报告]
发表于 2012-06-22 09:31 |只看该作者
回复 286# pmerofc


    你不放屁行吗,怎么强词夺理了?你有根据吗,有根据说出来,没根据别乱喷
   乱喷谁都会,我说你是屎你就是屎了??

论坛徽章:
0
268 [报告]
发表于 2012-06-22 09:41 |只看该作者
回复 276# 幻の上帝


    5.1.1.3 Diagnostics
1 A conforming implementation shall produce at least one diagnostic message (identified in an implementation-defined manner) if a preprocessing translation unit or translation unit contains a violation of any syntax rule or constraint, even if the behavior is also explicitly specified as undefined or implementation-defined. Diagnostic messages need not be produced in other circumstances.9)
9) The intent is that an implementation should identify the nature of, and where possible localize, each violation. Of course, an implementation is free to produce any number of diagnostics as long as a valid program is still correctly translated. It may also successfully translate an invalid program.
这段话哪里说implementation-defined 不产生diagnostic message 了?? 不会翻译就不来误导人

1 A conforming implementation shall produce at least one diagnostic message (identified in an implementation-defined manner) if a preprocessing translation unit or translation unit contains a violation of any syntax rule or constraint, even if the behavior is also explicitly specified as undefined or implementation-defined. Diagnostic messages need not be produced in other circumstances

这段只是针对conforming implementation 来说的,你之前不是一直推崇conforming implementation 来噎我么,到现在你也没说出来implementation-defined是否产生诊断信息跟conforming implementation 有什么关系

The intent is that an implementation should identify the nature of, and where possible localize, each violation. Of course, an implementation is free to produce any number of diagnostics as long as a valid program is still correctly translated. It may also successfully translate an invalid program.
这段反而还说了实现应该定义the nature of each violation,然后实现可以free to produce any number of diagnostics as long as a valid program is still correctly translated,
implementation-defined 不算是implementation ?
看不懂找高人给你翻译一下,别自己YY

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
269 [报告]
发表于 2012-06-22 09:50 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
270 [报告]
发表于 2012-06-22 09:53 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP