With the allowed parameters defined in an array, the call from the application program to the argument processing code can be kept as simple as a single call to a static method.
有了得到允许的在一个数组中定义的形参,应用程序对参数处理代码的调用就可以像对一个静态方法的单个调用一样简单。
The static keyword will simply try to resolve the call in the current class instead of the class the function was defined in.
静态关键字将仅仅尝试在当前类中解析调用,而不是在定义函数的类中执行。
You can access methods on singleton objects similar to how you would call static methods.
您可以像调用静态方法一样访问单例对象的方法。
New to PHP V5.3 is the ability to have the name of the class when specified be a variable when making a static call.
PHPV5.3的一个新特性就是在进行静态调用时,能够使指定的类名成为一个变量。
LaunchApp creates an instance of an Assembly object using the Assembly.LoadFrom static method rather than by using an explicit constructor call.
LaunchApp使用Assembly .LoadFrom静态方法创建Assembly对象的实例,而不是通过显式调用构造函数来创建。
If you choose the static buffer option, that buffer will be overwritten with the next call to ERR_error_string.
如果您选择的是静态缓冲区选项,那么在下一次调用ERR_error_string时,该缓冲区会被覆盖。
The second bold line shows how to create the SReg request through a static method call to SRegRequest.createFetchRequest().
第二行粗体代码显示了如何通过对 SRegRequest.createFetchRequest() 的静态方法调用创建SReg请求。
For instance, normal Clojure functions have low call overhead as they're mostly reduced to static method calls.
例如,普通的Clojure函数都有较低的调用开销,因为它们都尽量降为静态函数调用。
The static methods in the Factory class will then call the instance methods of your factory instance.
然后,Factory类中的静态方法会调用您工厂实例的实例方法。
In this case, the clause is parsed at runtime, and the call against the database is built up from the static and dynamic parts of the Open SQL statements.
在这种情况下,在运行时解析子句,根据Opensql语句的静态部分和动态部分构造数据库调用。
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(它使用一个静态的数据区),会产生不可思议的结果。
In Listing 2, I declare a single static method that accepts a String parameter (traditionally called self, but you can call it whatever you like) that represents the class I'm adding the method to.
在清单2中,我声明了一个单独的静态方法,接收String参数(通常称为self,但是您可以随意为其命名),代表我向其中添加方法的类。
To call a static method from outside of its class, use the class name together with the scope resolution operator and the name of the method.
要从类外部调用静态方法,可使用类名加上范围解析符和方法名。
If the method is not static, I generate code to load the this object reference to the stack, and also set the method call type to virtual (rather than static).
如果方法不是静态的,那么就生成将this对象引用装载到堆栈中的代码,同时设置方法调用类型为virtual(而不是static)。
These two functions are both declared private static, which enables you to call them from within your main method but not from other classes.
这两个函数都声明为privatestatic,因此可以从main方法中调用它们,但是不能从其他类调用。
Most importantly, for our purposes, it generates the static client classes into other projects so they can call a web service.
而其中最为重要的就是在其它项目中生成静态客户机类,使它们可以调用这个Web服务。
For example, Listing 1 shows the JNI code required to call a static method.
举例来说,清单1展示了调用静态方法所需的JNI代码。
In here is our static void main call, which serves an entry point for the application.
在这里调用的是staticvoidmain,其是作为应用程序的入口点。
So as you see although we call foo function three times the initialization of a static varible is done only once.
你回答你的问题基本。静态变量(一个函数或者类的成员变量或局部变量)是只初始化一次,终止。例如;
Why does PHP assigns context to a static method call and does not give an E_STRICT notice?
为什么PHP指定上下文静态方法调用并不会给一个e_strict通知?
The recovery of indirect procedure call is a difficult problem in static binary translation.
间接过程调用的恢复问题是静态二进制翻译中的难点之一。
The static analysis of member call is defined as determining the type of member function pointer or reference in compiling stage.
在面向对象程序设计中,成员调用的静态分析是指在编译阶段确定调用成员函数指针或引用的类型。
You can also call static methods on classes and access classes' static fields. Observe!
也可以调用类的静态方法或访问类的静态字段。
If you are using a regular expression pattern that has already been defined in another static method call, the regular expression engine will retrieve it from the cache.
如果您使用其他静态方法呼叫中已定义的规则运算式模式,规则运算式引擎就会从快取中撷取这个规则运算式模式。
If your software design requires an explicit call to a static constructor, it is likely that the design contains serious flaws and should be reviewed.
如果软件设计要求显式调用静态构造函数,则可能该设计存在严重缺陷,请检查该设计。
Whether extension methods apply or not depends on the static context of the call (i. e. which using clauses occur), and this context information is not currently kept as part of the payload.
不论扩展方法是否依赖该调用的静态上下文(也就是出现了using语句),因为该上下文信息并不会作为有效载荷的一部分保留下来。
Whether extension methods apply or not depends on the static context of the call (i. e. which using clauses occur), and this context information is not currently kept as part of the payload.
不论扩展方法是否依赖该调用的静态上下文(也就是出现了using语句),因为该上下文信息并不会作为有效载荷的一部分保留下来。
应用推荐