参数评估顺序 [英] Order of parameter evaulation

查看:94
本文介绍了参数评估顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

男孩,我敢肯定这是一个FAQ。


很多年前,我的编程语言的运行时行为教授

绝对保证C参数从左到右进行评估。


他是来自CMU的聪明人,他的研究重点是编程
语言,我相信他,但现在我不太确定。


一点帮助?


- -

布什正吹着它。

Boy, I''ll sure bet this is a FAQ.

Many years ago, my "runtime behavior of programming languages" prof
absolutely guaranteed that C parameters are evaluated left-to-right.

He was a bright guy from CMU whose research focus was on programming
languages, and I believed him, but now I''m not so sure.

Little help?

--
Bush is blowing it.

推荐答案

Richard< rh *** @ hotmail.com>写道:
Richard <rh***@hotmail.com> wrote:
男孩,我肯定会打赌这是一个FAQ。
许多年前,我的编程语言的运行时行为教授
绝对保证C参数从左到右进行评估。
他是来自CMU的聪明人,他的研究重点是编程语言,我相信他,但现在我不太确定。
一点帮助?
Boy, I''ll sure bet this is a FAQ. Many years ago, my "runtime behavior of programming languages" prof
absolutely guaranteed that C parameters are evaluated left-to-right. He was a bright guy from CMU whose research focus was on programming
languages, and I believed him, but now I''m not so sure. Little help?




你说得对,这是在FAQ中。

http://www.eskimo.com/~scs/C-faq/top.html


或者更具体地说:

http://www.eskimo.com/~scs/C-faq/q3.4.html


Alex



You''re right, this is in the FAQ.

http://www.eskimo.com/~scs/C-faq/top.html

Or, more specifically:

http://www.eskimo.com/~scs/C-faq/q3.4.html

Alex


Richard写道:
Richard wrote:
男孩,我相信这是一个FAQ。

许多年前,我的编程语言的运行时行为教授
绝对保证C参数从左到右进行评估。

他是CMU的聪明人,他的研究重点是编程语言,我相信他,但现在我不太确定。
Boy, I''ll sure bet this is a FAQ.

Many years ago, my "runtime behavior of programming languages" prof
absolutely guaranteed that C parameters are evaluated left-to-right.

He was a bright guy from CMU whose research focus was on programming
languages, and I believed him, but now I''m not so sure.




不要这么肯定是好的:要么他错了,要么你对

他说的是错的。

-

Martin Ambuhl



It''s good not to be so sure: either he''s wrong or your understanding of
what he said is wrong.
--
Martin Ambuhl


Richard写道:
Richard wrote:

男孩,我敢肯定这是一个常见问题解答。

很多年前,我的编程语言的运行时行为教授
绝对保证C参数从左到右进行评估。

他是CMU的聪明人,他的研究重点是编程语言,我相信他,但现在我不太确定。

没什么帮助?

Boy, I''ll sure bet this is a FAQ.

Many years ago, my "runtime behavior of programming languages" prof
absolutely guaranteed that C parameters are evaluated left-to-right.

He was a bright guy from CMU whose research focus was on programming
languages, and I believed him, but now I''m not so sure.

Little help?



http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/


N869

3.19

[#1]未指明行为

此国际标准提供两种或两种行为

更多的可能性并且没有要求在任何情况下选择




[#2]示例未指定的示例行为是评估函数参数的

顺序。



http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/

N869
3.19
[#1] unspecified behavior
behavior where this International Standard provides two or
more possibilities and imposes no requirements on which is
chosen in any instance

[#2] EXAMPLE An example of unspecified behavior is the
order in which the arguments to a function are evaluated.


这篇关于参数评估顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆