pass-by-value的意思|示意
按值传递
pass-by-value的网络常见释义
值传递 ...。除非你指定其他方式,函数参数会用实际参数值的拷贝进行初始化,函数调用者会获得函数返回值的一份拷贝。这些拷贝由对象的拷贝构造函数生成。这使得按值传递(pass-by-value)变成一项昂贵的操作。举个例子,考虑下面的类继承体系(Item 7): 1 class Person {
按值传递 缺省情况下,返回值类型依然是按值传递(pass-by-value),这就是说得到这个返回值的控制函数得到的只是返回表达式的拷贝,因此你无法对他进行修改。
pass-by-value相关短语
1、 pass by value 传值 ; 值传递 ; 传递的
2、 Pass-by-reference or Pass-by-value 援用传递照样值传递
3、 Page Pass By Value Technical 页面传值技术
pass-by-value相关例句
Generally we pass them by value as a copy. So we cannot change them.
一般情况下,我们是传递变量值的一份拷贝,因而无法改变变量的值。
You can improve the value of your business processes asset by importing the WebSphere business Modeler models into Rational Software Architect to pass the knowledge to your development team.
您可以通过将WebSphere Business Modeler模型导入到Rational Soft ware Architect之中,将知识传递到您的开发团队,从而提高业务处理过程资产的价值。
For reference types, if you pass a parameter by value, it results in a copy of the reference to an object being passed.
重要事项对于引用类型,按值传递参数会得到对所传递对象的引用的副本。
We also pass the post data in the postdata object (specified as an object containing key/value pairs by using gadgets.io.encodeValues() to format the input args).
我们还要传递 postdata 对象(被指定为包括键/值对的一个对象,通过使用 gadgets.io.encodeValues() 格式化输入 args)内的 post 数据。
The enable-call-by-reference element is generally used to pass parameters by reference rather than by value, which requires making a copy of the parameters.
enable-call-by-reference 元素通常用于按引用传递参数,而不是按值传递,后者需要对参数做复制。
Describes how to pass strings by value, by reference, in structures, in classes, and in arrays.
描述如何通过值、通过引用、在结构中、在类中和在数组中传递字符串。