But you cannot use a type parameter to access a constructor because, at compile time, you don't know what class is being constructed and therefore what constructors are available.
但是您不能使用类型参数访问构造函数,因为在编译的时候还不知道要构造什么类,因此也就不知道使用什么构造函数。
The class type will become explicit only when the application actually needs the class, not during compile or run time.
只有当应用程序实际上需要该类,而不是在编译或运行时过程中,此类的类型才成为显式的。
You can then treat each named value as an instance of that class, providing you with compile-time type safety that a named set of integers can't.
然后,可以将每个指定的值看作是那个类的一个实例,这为您提供了指定的整数集合所无法提供的编译时类型安全。
Likewise with the generics changes — the generic type information is used by the compiler to enforce compile-time safe usage, but the generated bytecode still USES casts everywhere.
比如泛型更改——泛型类型信息——由编译器用于实施编译时安全,但是生成的字节码仍然到处使用强制转换。
Simply put, generics provide compile-time type safety for collections.
简单来说,泛型为集合提供了编译时类型安全。
For the trouble, you get rock-solid performance, compile-time type checking, and a very high-level language.
虽然付出了这一点成本,但可以得到非常好的性能,编译时类型检查,以及一个非常高级的语言。
OK, so you can't copy a reference to a type whose class is totally unknown at compile time.
因此,不能复制在编译时根本不知道是什么类的类型引用。
Both work fundamentally the same way, at compile time the keyword "var" is replaced with the correct scalar or array type for the associated expression.
二者的实现基础完全相同,即在编译时将“var”替换成为分析得到的正确的变量或数组类型表达式。
You will have a compile-time error something like: "The nested type Person cannot hide an enclosing type".
否则将会导致一个编译时间错误,如 “该嵌套类型Person无法隐藏封闭类型”。
By including the size in the type, a compile-time checker can symbolically analyze the accesses to the array to ensure that no accesses are done outside the bounds of the array.
通过在该类型中包括数组大小,编译时间检测器可以象征性地分析数组的存取,确保所有存取都在数组范围内进行。
The type-safety feature will provide for much earlier error detection at compile time, rather than at run time with the standard JPQL constructs.
类型安全功能将提供在编译时的早期错误检测,而不是使用标准JPQL 构建时的运行时检测。
This is particularly useful when the type of the SDO is not known at compile time, or when new properties might be added after the program is deployed.
当s DO的类型在编译阶段未知时,或者当程序部署完以后可能要添加新的属性时,这特别有用。
Of course, you also give up the safety net of the compile-time type checking.
当然,还会失去编译时检查的安全保障。
Similarly, instanceof checks on naked type parameters will result in an "unchecked" warning at compile time and the check will not occur as expected at runtime.
同样,对“外露”类型参数的instance of检查将在编译时产生“unchecked”警告,而且检查将不会如期在运行时进行。
The compiler can verify that the evaluation of an XPath on an element is appropriate with respect to the XML Schema type of the element (detecting many errors at compile-time).
编绎器将根据元素的XMLschema类型来验证该元素上的xpath计算是适当的(在编绎时检测很多错误)。
These operators return dynamic type information only for classes with one or more virtual functions. For all other types, information for the static (i. e. , compile-time) type is returned.
这些操作符只为带有一个或多个虚函数的类返回动态类型信息,对于其他类型,返回静态(即编译时)类型的信息。
When an exception is thrown, the static, compile-time type of the thrown object determines the type of the exception object.
当抛出一个表达式的时候,被抛出对象的静态编译时类型将决定异常对象的类型。
The type safety allowed compile-time resolution of some things that C-style libraries resolve at run-time, thus giving excellent performance.
类型安全允许一些原本在C风格库中需要在运行时决定的事,可在编译时决定,因而提供了非凡的性能。
The compiler USES a variable's initializer to determine the variable's type at compile time to produce early-bound code.
编译器使用变数的初始设定式,在编译时期判断变数的型别以产生早期系结程序码。
A variable of array type has three important limitations: Its size is fixed, the size must be known at compile time, and the array exists only until the end of the block in which it was defined.
数组类型的变量有三个重要的限制:数组长度固定不变,在编译时必须知道其长度,数组只在定义它的块语句内存在。
Because at compile time, the compiler validates if you can call a method based on the reference type.
因为在编译时,编译器验证如果你可以调用一个基于引用类型的方法。
This means that all program elements have a definite type at compile time, guaranteeing type safety, but that you do not have to specify the types of every value explicitly.
这意味着,所有程序元素的类型在编译时都要明确,从而确保类型安全,但您不需要显式指定每个值的类型。
The reason for this behavior is that, at compile time, the compiler only knows that t is a reference type, and therefore must use the default operators that are valid for all reference types.
这种情况的原因在于,编译器在编译时仅知道t是引用类型,因此必须使用对所有引用类型都有效的默认运算符。
Dynamic methods are useful to compiler writers when the type of an object is not known at compile time.
当物件的型别在编译时期未知时,动态方法对于编译器写入器很有用处。
The compiler USES a variable's initializer to determine the variable's type at compile time to produce early-bound code.
编译器使用变量的初始值设定项,在编译时确定变量的类型,以生成早期绑定代码。
There is no need to write code to test for the correct data type because it is enforced at compile time.
不需要编写代码来测试数据类型是否正确,因为在编译时会强制使用正确的数据类型。
If client code tries to instantiate your class by using a type that is not allowed by a constraint, the result is a compile-time error.
如果客户端代码尝试使用某个约束所不允许的类型来实例化类,则会产生编译时错误。
Are abstract type members a compile time construct?
抽象类型成员的编译构建?
Are abstract type members a compile time construct?
抽象类型成员的编译构建?
应用推荐