这些表达式的类型必须是32位整数。
C+ +没有提供查询变量或表达式的类型的简便方法。
C + + has never had an easy mechanism for querying the type of a variable or an expression.
函数表达式的类型取决于函数的性质及其参数的类型。
The functional expression's type depends on the nature of the function and type of its arguments.
编译器将通过初始化表达式的类型推断出变量的类型。
The compiler infers the type of the variable from the type of the initialization expression.
编译器将根据变量的初始化表达式的类型来推断变量的数据类型。
The compiler infers the data type of a variable from the type of its initialization expression.
如果L的体是一个表达式,表达式的类型就是推导出的L的返回类型。
If the body of L is an expression, the type of that expression is the inferred return type of L.
Type:得到表达式的静态类型,在本例中,表达式的类型是Func<int, int, int>。
Type: Gets the static type of the expression. In this case, the expression is of type Func<int, int, int>.
只要没有混合的类型表达式,就可以在常数说明中使用算术运算符。
You can use arithmetic operators within your constant declarations as long as there are no mixed type expressions.
表3显示所需的列和它们相应的数据类型和路径表达式。
Table 3 shows the needed columns and their corresponding data types and path expressions.
表达式中项的两种简单类型就是常量和变量。
The two simplest types of terms in an expression are constants and variables.
如果理解了XPath并能使用不同类型的表达式,事情就更有趣了。
Things get more interesting when you understand XPath and can use different types of expressions.
编绎器确保XPath表达式的结果满足此类型。
The compiler ensures that the result of the XPath expression satisfies this type.
由JeremyManson提交,该建议提出增加对类实例创建表达式的有限类型推断。
Submitted by Jeremy Manson, this proposal addresses the addition of limited type inference for class instance creation expressions. For example instead of writing.
如果没有XPath表达式的值是true,那么选择默认的类型定义(xs:string)。
If none of the XPath expressions evaluate to true, the default type definition (xs: string) is selected.
它允许模式作者在元素声明中根据XPath表达式的值指定类型替换。
This allows the schema author to specify type substitutions on an element declaration which are selected based on the evaluation of XPath expressions.
非常明显,你的throwit函数不能把对象的动态类型传给抛出表达式。
It is clear that your throwit function cannot pass the dynamic type of the object to the throw expression.
与其他表达式一样,它们是强类型的,并且由表达式工厂(即QueryBuilder)构造。
Like any other expression, they are strongly typed and constructed by the expression factory - namely, CriteriaBuilder. The query in Listing 2, then, can be parameterized as shown in Listing 10.
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).
解决表达式问题使将先前存在的类型扩展到新方法成为可能,所有这些都不重新编译现有代码。
Solving the Expression Problem makes it possible to extend preexisting types to new methods and extend preexisting methods to new types, all without recompiling existing code.
尽管许多数据类型和基本的表达式是相同的,但是它们的用法和应用不太一样。
Although many of the data types and fundamental expressions are the same, their use and application is slightly different.
可以手工转换或者(最好)编写新的使用这些类型的表达式。
Manually cast them or (better yet) write new expressions that use the typed value for real.
你也希望根据那些特性打开新的推断特性的选项,这允许编译器通过估计右值表达式去推测出局部变量的申明类型。
You'll also want to turn on the new Option infer feature. This allows the compiler to infer local variable type declarations by evaluating the right-hand side of the expression.
如前所述,每个查询表达式都是泛型的,以表示表达式计算的值的类型。
As I mentioned earlier, every query expression is generically typed to denote the type of the value the expression evaluates to.
仍然要验证表达式的语法是否适合字段类型的上下文,但这时的语法可以是运行时支持的所有语法。
Expressions are still validated for syntax appropriate in the context of the field type, but can be in the full range of grammar as supported by the runtime.
本系列的第6部分讨论了表达式中的类型不匹配,并建议使用类型转换函数来保证计算结果得到正确的类型。
Part 6 of this series discussed type mismatches in expressions and suggested that casting functions be used to guarantee that a calculated value will come through with the proper type.
对于安装的正则表达式注释器PEAR版本中的XML规则和类型系统文件,必须应用上一节讨论的规则和类型系统修改。
The rule and type system changes discussed in the previous section must be applied to the XML rule and type system files in the installed version of the regular expression annotator PEAR.
在开始介绍表达式的细节之前,有必要先简单了解表达式能够计算的数据类型。
Before turning to the details of expression formation, it is useful to take a quick survey of the types of data that expressions can manipulate.
如果会绕过索引,应该对比较表达式的RHS执行类型转换。
If the index is being bypassed, then the RHS of the comparison should be type-cast.
XQuery提供了一些不同类型的表达式,这些表达式可以随意组合。
XQuery provides several different kinds of expressions that can be combined in any way you like.
函数类型确实是表现lambda表达式类型的一种自然方法,但遗憾的是它们无法与现有语言功能“擦除(erasure)”很好地进行交换。
Function types are indeed the natural way to represent the type of a lambda expression, but unfortunately they interact badly with an existing language "feature" : erasure.
应用推荐