这样做经常需要添加类型强制转换来编译代码。
Doing so often necessitates the addition of casts to get the code to compile.
DB 2 9.7现在支持隐式的数据类型强制转换。
还有一种选择是,检查不变量以确保类型强制转换将会成功。
Alternatively, examine the invariants to ensure that the casts will succeed.
这种方法可除去上面代码中类型强制转换的需要,但不修正错误。
This approach would eliminate the need to cast in the above code, but it would not fix the bug.
把类型强制转换当作一种断言,把不变量当做说明该断言为true的原因的参数。
Think of a cast as a kind of assertion and the invariants as arguments for why the assertion is true.
其次,它消除了易出错的类型强制转换的需要(这是一个在查询操作中比在CRUD中更常见的问题)。
Secondly, it removes the need for error-prone type casts. (a problem more common with query operations than CRUDs.)
改变了类型强制规则,以保持数组(更为常见)中的类型 ,而不是转换为Python 标量的类型。
The type coercion rules have changed to preserve types in arrays (more often), rather than converting to the type of a Python scalar.
它包括构建在FluxAdvancedSecurityKernel (Flask)安全架构之上的强制访问控制,后者包括以插件模块形式提供的类型强制和多级安全(MLS)。
It includes mandatory access control built on top of the Flux Advanced security Kernel (Flask) security architecture, including type enforcement and multilevel security (MLS), all as plug-in modules.
这种控制类型称为强制访问控制(MAC)。
This type of control is called mandatory access control (MAC).
这个约束强制任何类型'T '都必须具有无参数的公共构造函数。
This constraint forces any type 't' to have a default constructor, that is, a constructor that takes no parameters.
Map和reduce并非必须强制某种特定类型的应用程序。
Map and reduce don't necessarily force a particular type of application.
这些消息类型是可选的,在运行时并非强制使用。
These message types are optional. They are not enforced by the runtime.
JPA规范定义了对映射继承的三种类型的支持;其中只有一种在当前规范中是强制的
The JPA specification defines three types of support for mapping inheritance; only one is mandatory in the current specification
只有强制条件与提供程序的wsdl端点类型关联,但该条件还可以包括用户定义的属性和分类。
The only mandatory criteria relate to the WSDL port type of the providers, but the criteria can also include user-defined properties and classifications.
通过声明抽象的元素或者类型,XMLSchema提供了一种强制替换机制。
By declaring an element or type to be abstract, XML Schema provides a mechanism to force substitution for it.
不过,由于DB 2不强制要求将XML模式与xml列相关联,所以元素或属性的数据类型不是预先确定的。
However, since DB2 does not force you to associate an XML schema with an XML column, the data types for elements or attributes are not predetermined.
注意,只有人工任务活动可以与跳转协同完成;所有其他活动类型需要强制结束。
Note, only human task activities can be completed in combination with a jump; all other activity types need to be force-completed.
由于DB2不强制要求将单个XML模式与 XML列中的所有文档相关联,所以特定元素和属性的数据类型事先是未知的。
Since DB2 does not force you to associate a single XML schema with all documents in an XML column, the data types for specific elements and attributes are not known a-priori.
如果要强制取得浮点结果,则必须确保操作数中至少有一个为浮点类型。
If you want to force a floating-point result, be sure that at least one of the operands is a floating-point type.
用于弱类型变量,以将它们强制转换为另一种类型。
它进行静态类型检查,并且不允许强制类型转换,因而对于类型而言是安全的。
It is statically type-checked and does not allow type coercion, so is safe with regards to types.
清单2:Frontier:RPC中强制类型转换。
在美国,药商与医疗设备公司游说团极端反对类似“国家健康和临床研究所”类型的、能够发布强制性规定的机构。
In America, the drugs and devices lobbies are violently opposed to a NICE-style agency that could issue mandatory rulings.
解决方案是将一个操作数强制转换成 64位的类型。
The solution is to cast one of the operands to its 64-bit type.
CAST函数被调用两次,以将输入参数的值(针对城市和州)强制转换适当的数据类型。
The cast function is called twice to cast the values of the input parameters (for city and state) to appropriate data types.
例如,在使用HL7协议时,HL7V 2 . X可以使用带确认信息的单向消息,而HL7V 3 . 0则强制要求使用请求-响应类型的MEP。
For example, in using the HL7 protocol, HL7V2.X can work with one-way messages with acknowledgement alone while HL7V3.0 mandates the use of a request-response type of MEP.
在Desktop策略文档中,更改邮件类型设置、强制复制以及管理复制进度都不是默认选项。
Changing mail type Settings, enforcing replication, and managing the replication schedule are not part of the default options in the Desktop policy document.
注意,在清单2中,从集合中提取项并不需要将其强制转换为正确的类型。
Notice in Listing 2 that fetching an item out of a collection doesn't require a cast to the right type.
阶段的类型决定哪些工作流是强制性的,哪些是可选的,并使用权重来指示该工作流相对于其他工作流所需的工作量。
The type of phase calls out which workflows are mandatory or optional and a weight that indicates the amount of effort expended on that workflow relative to the others.
消息部分的名称对接口类型的变量是强制性的,doclit/wrapped样式的接口的缺省值是“Parameters”。
The message part name is mandatory for interface typed variables, and defaults to "Parameters" for doclit/wrapped style interfaces.
应用推荐