Re: Try/Catch

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

Here is how I would program Try/Catch:

if err
> get errno
> set errno-flag
> on errno do
>> err-handling(errno)
>>reset this-errno-flag
>>errno+1
>> while err-flag-field
endif

that's all and treats all errors in numeric flag-order.
err-flag-field should be a bit-variable for saving space

the asm commands
bset
bclr
bchg
are among the fastest you can find

ekhnaton's solution so to say
logic applied all over

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

Search



Quick Links

User menu

Not signed in.

Misc Menu