[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Re: Signed/Unsigned confusion

> ActualIntegerTable::firstElemAfter and
> ActualIntegerTable::lastElemBefore are both declared as returning a
> UInt4, but both (if the tally == UInt40) will try to return a -1.
> What's the right fix?


Which is the generic answer to "How do I return an exception when every
member of the set of possible return values is a valid non-exceptional

Magic numbers are for people who don't have an exception-handler.