那么,这个变量的类型是什么?
注意,每个变量的类型都首先声明。
解释器可以根据用法来推断变量的类型。
定义或声明中命名其后变量的类型的部分。
The part of a definition or declaration that names the type of the variables that follow.
当第一或第二软目标更改时,可用性变量的类型将更改。
When the first and second soft goals change, the types of availability variables change.
使用正在被赋值的变量的类型(称为简单架构)。
Use the type of the variable to which it is being assigned (call this simple).
Rhino运行库将在执行过程中推断变量的类型。
然后,清单6使用新定义的枚举作为一个成员变量的类型。
Then, Listing 6 USES the new enumeration as the type for the member variable.
在创建变量时,需要声明变量的类型,然后才能使用该变量。
When you create a variable, you need to declare what type it is before you can use it.
要更改quantity变量的类型,请选择quantity部分。
To change the type of the quantity variable, select the quantity part.
接口变量的类型基于WSDL接口文件中的输入或输出消息类型。
An interface variable has a type based on an input or output message type in the WSDL interface file.
变量定义指定了变量的类型和标识符,也可以为对象提供初始值。
A definition specifies a variable's type and identifier. A definition may also provide an initial value for the object.
隐型局部变量,允许局部变量的类型从初始化它们的表达式推导而来。
Implicitly typed local variables, which permit the type of local variables to be inferred from the expressions used to initialize them.
例如,必须用参数形式包括进类型信息,必须用函数形式返回值和所有变量的类型。
For example, you must include type information with arguments, return values with functions, and types for all variables.
Scheme是一种动态类型语言;因此,变量的类型通常只有到了运行时才知道。
Scheme is a dynamically typed language; therefore, the type of a variable is not generally known until run time.
当返回值的类型很复杂时,这个重构将很有用,因为变量的类型是自动生成的。
This is useful when the return value has a complex type because the type of the variable is automatically generated.
他们宁愿让编译器来做这种事情,而不愿意被迫重复地在代码中输入变量的类型。
They'd rather the compiler do the work than be forced to repeat themselves in their code.
你可以自由选择去传递对象变量的类型来确认该加载对象是否是被指定的类型。
You can optionally pass an object type as an argument to the load method to make sure the object loaded is of a specific type.
好,如果我们有了一个变量,我们要问的问题之一就是,这个变量的类型是什么?
OK. So if we have variables, one of the questions we can ask is, what's the type of the variable.
编译器使用变量的初始值设定项,在编译时确定变量的类型,以生成早期绑定代码。
The compiler USES a variable's initializer to determine the variable's type at compile time to produce early-bound code.
若是变量的类型名称较长,或是会经常变化,那么这样的声明方法更是将显得非常乏味。
When the type names are long or are changed frequently, this can become quite tedious.
XPath表达式使用动态定类型(在对表达式或变量求值之前,不必知道表达式或变量的类型)。
XPath expressions use dynamic typing (the type of an expression or of a variable is not necessarily known until the expression or variable is evaluated).
比如你简单修改变量的类型和方法的名字,这样程序就可以做实数的加法了,如图2 - 3。
You could, for example, change this program so that it added two real Numbers simply by changing the types of the variables and the names of the input methods, as shown in Figure 2-3.
所以我的建议是,你们要养成一些好的编程风格,尤其是,不要反复无常的改变变量的类型。
So one of the things I would like to suggest is that you develop some good style here, and in particular, don't change types arbitrarily.
接下来,我将解释BPEL变量的类型如何映射到在BPEL应用程序和它的合作伙伴服务之间交换的消息。
Next, I explain how BPEL variables' data types map to messages exchanged between a BPEL application and its partner services.
在运行时,该版本的方法将被调用是基于存储在引用变量并没有对参考变量的类型对象的实际类型。
At run time, which version of the method will be invoked is based on the type of actual object stored in that reference variable and not on the type of the reference variable.
Lua变量不是强类型的;虽然可以检查一个值的类型,但是无法阻止一个变量的类型随着时间而改变。
Lua variables are not strongly typed; you can check the type of a value, but there is nothing preventing a variable's type from changing over time.
js文件(如清单3 所示)包含一个printType() 函数,该函数可用来输出每个脚本变量的类型。
The DemoScript.js file (shown in Listing 3) contains a function named printType(), which is used to output the type of each script variable.
虽然input1变量的类型与output1变量相同,但是不会将该类型自动复制到out put1变量。
Although the input1 variable has the same type as the output1 variable, the type is not automatically copied to the output1 variable.
相反的,动态类型的语言则是根据变量所引用的值来绑定类型,这意味着变量的类型可以随着它引用的值改变而改变。
In contrast dynamically typed languages bind the type to the actual value referenced by a variable, meaning that the type of a variable can change along with the value it references.
应用推荐