在编译时,可以使用GCC提供的一个内置函数判断一个值是否是常量。
GCC provides a built-in function that you can use to determine whether a value is a constant at compile-time.
使用注释时要记住的一个因素是,命名值必须始终是编译时常量,而且不能为null。
One factor to keep in mind when working with annotations is that the named values must always be compile-time constants and can never be null.
大多数支持默认参数的语言只允许编译时能决定的常量或者值作为默认值。
Most languages with default argument values only allow constants or other values that can be determined at parse-time.
应用推荐