If multiple roles are applied to the same class and a conflict exists, a compile-time error will be thrown.
如果多个 roles 被应用到同一个类中, 会出现冲突并抛出一个编译时错误。
The standard does not define behavior for other directives: they might be ignored, have some useful meaning, or cause a compile-time error.
标准不定义其他指令的行为:它们可以被忽略、拥有一些有用的含义或导致编译时错误。
Like all the other actions, an assignment expression has no value for itself. So it is not allowed to embed an assignment expression in other expressions. For example, the following example will yield a compile-time error
If there are more than two alternatives in the subpattern, a compile-time error occurs.
如果有超过 2 个的可选子组,会产生给一个编译期错误。
In the case of variables that are defined locally to a method, this guarantee comes in the form of a compile-time error.
若被定义成相对于一个方法的"局部"变量,这一保证就通过编译期的出错提示表现出来。
An invalid constant subrange results in a compile-time error; and an out-of-range index used at run-time results in a run-time error if the corresponding compiler option is enabled.
With FORTIFY, you get a compile-time error that looks like
有了 FORTIFY,您会收到如下编译时错误:
If there are more than two alternatives in the subpattern, a compile-time error occurs.
但是,如果有多个可选分支, 它们不需要拥有相同的长度。
The C++ standard library provides homogeneous containers because those are the easiest to use in the vast majority of cases, gives the best compile-time error message, and imposes no unnecessary run-time overheads.
C++ 标准库提供单态的容器,因为大多数情况下,它们常用且易用,并能提供尽可能好的编译时错误信息,而且没有不必要的运行时开销。
If you forget, Java definitely improves on C++: you get a compile-time error telling you the variable might not have been initialized.
如果忘记,就会得到一条编译期错误,告诉我们变量可能尚未初始化。
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.