For example, if someone says "I have an essay to write" in answer to an invitation to go somewhere, we can infer from the context that he is not going.
例如,如果有人说“我有篇稿子要写”在回答邀请去某个地方,我们可以推知从上下文,他是不想去某地。
It is sometimes possible to infer the meaning from the context, but not always.
有时候可以根据上下文推断出含义,有时候不可以。
As for the upcast operator, if the compiler cannot infer a specific target type from the context, it reports an error.
对于向上转换运算符,如果编译器无法根据上下文推断出特定的目标类型,则将报告错误。
应用推荐