The paper makes in-depth analysis about essence of call by values and call by references, return by value and return by reference, also explains these through some examples.
笔者系统地分析了函数参数传递中值调用和引用调用以及函数值返回和引用返回的本质,并举例进行了说明。
The previous section showed how to reference another sequence diagram by passing information through parameters and return values.
前面的段落展示如何通过参数和返回值传递信息,引用另一个序列图。
Does not return a reference to static data, and all data is provided by the caller of the function?
不返回对静态数据的引用,所有数据都由函数的调用者提供。
So, for example, by specifying the return object as a type "json", jQuery will automatically convert the response String from a server into a json object, allowing you to reference it immediately.
所以,例如通过将返回对象指定为“json ”类型,jQuery将能自动将来自服务器的响应字符串转换成json对象,使您能够立即引用它。
Note, however, that copied syntax contains only the method name followed by empty parentheses, so you must remember the parameters or return to content assist or the reference pane.
但是请注意,所复制的语法仅包含方法名称和空括号,因此必须记得参数或者必须返回内容帮助或reference面板。
Passing types by reference (using out or ref) requires experience with Pointers, understanding how value types and reference types differ, and handling methods with multiple return values.
使用引用类型参数,需要了解值类型和引用类型的差别,同时,使用这个方法将会有多个返回值。
If you use this variable to pass a reference to an instance of a class, the members of the instance can be modified by the thread-pool thread and used as return values.
如果您使用这个变数将参考传回类别的执行个体,则执行绪共用执行绪可以修改执行个体的成员,并当做传回值使用。
Note: you should never use parentheses around your return variable when returning by reference, as this will not work.
注意:当用引用返回值时永远不要使用括号,这样行不通。只能通过引用返回变量,而不是语句的结果。
Note: you should never use parentheses around your return variable when returning by reference, as this will not work.
注意:当用引用返回值时永远不要使用括号,这样行不通。只能通过引用返回变量,而不是语句的结果。
应用推荐