数字输入,我能够肯定的来做强制转换。
If I'm expecting mostly Numbers in, I can certainly try and do the coercion.
我能够做那个强制转换。
这样做经常需要添加类型强制转换来编译代码。
Doing so often necessitates the addition of casts to get the code to compile.
补救方法是更改代码,以强制转换为正确的对象。
The remedy is to change the code to cast correctly to the right object.
如不强制转换则该程序不会进行编译。
用于弱类型变量,以将它们强制转换为另一种类型。
DB 2 9.7现在支持隐式的数据类型强制转换。
还有一种选择是,检查不变量以确保类型强制转换将会成功。
Alternatively, examine the invariants to ensure that the casts will succeed.
如果源值超出目标的范围,范围强制转换到范围内。
If the source value is out of the range of the destination, the VI coerces the source to the range.
如果源值超出目标的范围,函数强制转换到范围内。
If the source value is out of the range of the destination, the VI coerces the source to the range.
这种方法可除去上面代码中类型强制转换的需要,但不修正错误。
This approach would eliminate the need to cast in the above code, but it would not fix the bug.
如果源值超出目标值范围,函数强制转换源值到范围内。
If the source value is out of the range of the destination, the VI coerces the source to the range.
你是否认为强制转换审计事务所会增加审计师的独立性?
Do you perceive mandatory audit firm rotation will increase the auditor independence?
治疗和预防措施:把类型强制转换代码分解到每个类的单独方法中去。
Cures and preventions: Factor the casting code out into separate methods for each class.
相反,在运行时发出的错误将会是一个空指针异常而不是类强制转换异常。
Instead, the error signaled at run time would be a null-pointer exception instead of a class-cast exception.
注意,在清单2中,从集合中提取项并不需要将其强制转换为正确的类型。
Notice in Listing 2 that fetching an item out of a collection doesn't require a cast to the right type.
当使用接口的类想要将该接口强制转换为其他接口或类类型时。
The class using the interface will want to cast that interface to other interface or class types.
那根本不是我们打算做的,如果是的话,我们完全可以显式地强制转换为界限。
That's not what we intended at all, and if it were, we would have simply cast to the bound explicitly.
最后,可以根据列编号为这些列建立索引,并直接强制转换结果(对于某些类型)。
Finally, you can index into the columns by column number and cast the results directly (for some types).
把类型强制转换当作一种断言,把不变量当做说明该断言为true的原因的参数。
Think of a cast as a kind of assertion and the invariants as arguments for why the assertion is true.
例如,通过使用类型名称可以将一个值强制转换为另一种类型,就象是一个函数一样。
For example, a value can be cast to another type by using the type name as if it were a function. So you could cast a value to an unsigned integer using the code fragment in Listing 12.
另一个例子,在调用宿主对象的函数时,如何进行类型强制转换,这也是没有规定的。
Another example is that it's not explained how types are coerced when calling functions on host objects. For example, when you do.
CAST函数被调用两次,以将输入参数的值(针对城市和州)强制转换适当的数据类型。
The cast function is called twice to cast the values of the input parameters (for city and state) to appropriate data types.
要从集合中提取元素,您必须知道集合中对象的类型,以将其强制转换为合适的局部变量。
To fetch elements from the collection, you had to know the type of object in the collection so you could cast it back to the appropriate local variable.
有了Groovy及其对duck-typing 的支持,将不再需要强制转换。
With Groovy and its support for duck-typing, there is no casting involved.
如上所述,Route节点对表达式求值,结果将强制转换为布尔值,以生成真或假的测试条件。
As described above, the Route node evaluates an expression, the result of which is then cast as a Boolean to produce a true or false test condition.
若要执行强制转换,请在要转换的值或变量前面的圆括号中指定要强制转换到的类型。
To perform a cast, specify the type that you are casting to in parentheses in front of the value or variable to be converted.
例如,如果用户不知道在某些情况下需要包装,则可能会在对返回对象进行强制转换时发出此消息。
For example, if the user does not understand that wrappers are needed for some scenarios then this will be sent on the return object cast.
注意:您需要强制转换返回类型 ―getValue返回一个Object 类型的对象。
Note that you need to cast the return type -- getValue returns an object of type Object.
注意:您需要强制转换返回类型 ―getValue返回一个Object 类型的对象。
Note that you need to cast the return type -- getValue returns an object of type Object.
应用推荐