When you call a function, what actually happens is that function gets its own chunk of memory that's identical in size to the data type that it expects.
当你调用一个函数,实际上发生的是函数得到了自己的内存块,它的大小与它期望的数据类型相同。
Listing 4 demonstrates the different ways to call a function bar in namespace Foo.
清单4演示了在名称空间foo内调用函数bar的不同方法。
Which is how you call a function in Vimscript when you intend to ignore the return value.
这就是希望忽略返回值时,在Vimscript中调用函数的方式。
The best way to know when a tag is loaded is to have the script that the tag returns call a function instead of simply loading data.
获悉标记何时加载的最好的方法是让标记返回的脚本调用函数而不是简单地加载数据。
Your program may not call a function in the DLL.
程序可能不调用DLL中的函数。
Otherwise, you just call a function and return a pointer.
否则,你只需要调用一个函数返回一个指针。
You want to call a function from within that same function.
你想在函数体中调用函数本身。
You want to call a function that takes no arguments, but don't want to use parentheses.
你想调用一个无参数的函数,但是你不想使用括号。
The only thing you need to do to call a function is specify a value (somehow) for each required argument;
在调用函数的时候,你唯一需要做的就是以某种方式确定必须的参数。
Using polymorphism, you can call a function with a function name to achieve a completely different function.
利用多态性技术,可以调用同一个函数名的函数,实现完全不同的功能。
More concretely, you can think of a message as a request to call a function that belongs to a particular object.
具体地说,你可以把一个消息当作向一个特殊的对象发送一个执行特定函数的请求。
Another advantage is that if you reuse the code, it is more concise to call a function twice than to copy and paste the body!
另外一个好处是下次重复使用这段代码的时候,再次调用函数就可以了,这比复制粘贴函数体可方便多了。
It is also a reminder about how arguments and parameters work: when you call a function, the arguments are assigned to the parameters.
也能提醒实际参数和形式参数的使用过程:调用一个函数的时候,把实际参数的值赋给了形式参数。
For instance, if two threads both call a function, such as asctime (which USES a single static data area), they can produce surprising results.
例如,如果两个线程同时调用一个函数,如asctime(它使用一个静态的数据区),会产生不可思议的结果。
Each time a timetick event occurs in FadeIn state, the handleEvent method will call a function that increases the opacity of the tooltip slightly.
每当在FadeIn状态下发生timetick事件时,handleEvent方法将调用一个函数,它略微增加工具提示的不透明度。
It's always better to call a function once with all the data it needs to process rather than to call it multiple times and to feed it data incrementally.
用函数需要处理的所有数据一次性调用函数,始终优于多次调用函数,并以增量的方式为其提供数据。
However, to call a named template requires more XSLT instructions, while to call a function is more compact and can easily be embedded in an XPath expression.
但是调用命名模板需要更多的XSLT指令,调用函数则更紧凑而且很容易嵌入到XPath表达式中。
When a mouseout event occurs, your code will call a function that cancels the timer started earlier in this section, and then transitions back to Inactive state.
当发生mouseout事件时,代码调用一个函数,它会取消本节前面启动的计时器,然后转换回Inactive状态。
When a program needs a service performed, it can call a function to perform the service and then pick up where it left off when the function is finished running.
当一个程序要执行一项服务,它可以去调用一个函数执行这个服务,当函数完成后返回到调用处。
In other words, if you call a function that changes the value of an atom, then when that function returns, you are guaranteed that all threads will see the new value.
换句话说,如果调用了改变atom值的函数,那么当该函数结果返回时,可以确保所有的线程都能看到新值。
We execute a member function in much the same way as we do any function: To call a function, we follow the function name by the call operator (the "()" operator).
执行成员函数和执行其他函数相似:要调用函数,可将调用操作符(())放在函数名之后。
Every time you call a function that can return an error, you need to be careful to check that your request produced the result you expected (or handle the error if it didn't).
每次您调用一个可以返回错误值的函数时,就必须小心地检查请求所生成的结果正是您所希望的(如果不是,就需要对错误进行处理)。
Every time you call a function that can return an error, you need to be careful to check that your request produced the result you expected (or handle the error if it didn't).
每次您调用一个可以返回错误值的函数时,就必须小心地检查请求所生成的结果正是您所希望的(如果不是,就需要对错误进行处理)。
应用推荐