[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Re: Signed/Unsigned confusion
- To: <vlad!mark>, <xtech>
- Subject: Re: Signed/Unsigned confusion
- From: Michael McClary <michael>
- Date: Thu, 13 Sep 90 20:47:30 PDT
> 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.