Returning a flag value would have many of the same problems as the Null Flag bug pattern we discussed last time.
返回一个标志值将引起许多与我们上次讨论的空标志错误模式一样的错误。
If we had added a getValue method to class Leaf, we would either have to return some sort of flag value indicating that the method application is non-sensical or actually throw an exception.
如果我们已经向Leaf类添加了getValue方法,我们要么是不得不返回一些类型的标志值表明此方法应用是无意义的,要么是实际抛出一个异常。
AdArray 0x2000 a flag value combined with another data type constant. Indicates an array of that other data type.
一个标记值,它是与其他的数据类型常数结合在一起使用的。它指明了包含其它数据类型的数组。
AdArray 0x2000 a flag value combined with another data type constant. Indicates an array of that other data type.
一个标记值,它是与其他的数据类型常数结合在一起使用的。它指明了包含其它数据类型的数组。
应用推荐