Re: Try/Catch
- Posted by Spock Feb 14, 2015
- 4133 views
mattlewis said...
Spock said...
If the error code is ORed instead of MOVed then explicit handling is not required at each step. It will simply "bubble up" until it encounters a test written for it. Whole levels could be written without any error checking but the error code will still happily pass through.
But I don't want it to "happily pass through." I want it to get to the error handling code immediately, which is what try/catch does.
Matt
Some calls will force the user to immediately check errno (eg, open(), value()). There is also the immediate default handling of the internal routine.
Spock