Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu