This thread has called into a function that cannot be displayed.
此线程调用了无法显示的函数。
First let's turn the old texture creation code into a function
首先让我们把以前创建纹理的代码写到一个方法里
If the function or procedure is able to assign values to its parameters, only its local variable is assigned-that is, anything passed into a function call is unchanged in the caller's scope when the function returns.
In an reference variable is passed into a function, the function works on the original copy (instead of a clone copy in pass-by-value).
C语言中函数的原型申明是被建议的,但调用处后面的函数的确可以不申明。
Then we put together the requesting and error-handling code into a function that fetches the url and treats any non-200 status as an error. That's convenient, because we often need such logic.
Let's make the code that defines a rectangle into a function so we can call it for different sized rectangles. While we're at it we'll make the color settable.
The compiler's preprocessor will, when using PHP 5.3 transform this into a function like this
编译器的预处理器会使用 PHP 5.3 将此转换为如下函数:
First let's change the code that loads an image into a function. It's pretty straightforward. It creates a new Image object, sets the URL to load, and sets a callback to be called when the image finishes loading.
But new Function allows to turn any string into a function. For example, we can receive a new function from a server and then execute it
但是 new Function 允许我们把字符串变为函数,所以现在我们完全可以从服务器获取并执行一个新的函数:
The Node model works well if your main performance problem is I/O. However, its achilles heel is that you can go into a function that is handling an HTTP request and put in CPU-intensive code and bring every connection to a crawl if you're not careful.
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.