Figure 7: Argument checking advice.
图7:实参检查建议。
Figure 6: Pointcuts for argument checking.
图6:用于检查实参的切入点。
Avoid doing expensive argument checking of pointer arguments.
避免对指针参数进行高开销的参数检查。
Debug mode provides additional error-handling features, such as type checking and argument checking, and provides more detailed error messages than release mode does.
调试模式提供类型检查和参数检查等附加错误处理功能,而且提供比发布模式更详细的错误消息。
In a large project where you have many classes and expose several interfaces, you might organize your code with a separate directory for the aspects that implement argument checking.
在一个大的项目中,你有很多类并暴露少数的一些接口,你可以使用用于方面的一个单独的目录来组织你的编码,进而实现实参的检查。
What we do is, in a loop, march down the argument list checking each one to see if it is an option.
我们所做的是,用一个循环遍历参数列表检查每个参数来看它是否为选项。
The instanceof function provides a good way of checking type, but you can also roll object type checking into the method signature itself by using type hints in the argument list.
虽然 instanceof功能提供了一种检查类型的好方法,但您还可以通过在参数列表中使用类型提示,来将对象类型检查滚动到方法签名自身中。
For example, I don't support ideas of direct language support for template argument constraints checking.
比如我不支持对模板参数约束检查提供直接语言支持的想法。
Doing so causes the compiler to perform argument type checking.
这样做会使编译器执行引数型别检查。
Doing so causes the compiler to perform argument type checking.
这样做会使编译器执行引数型别检查。
应用推荐