Re: Try/Catch
- Posted by dcuny Feb 11, 2015
- 4560 views
Ekhnat0n said...
if err
> get errno
> set errno-flag
> on errno do
>> err-handling(errno)
>>reset this-errno-flag
>>errno+1
>> while err-flag-field
endif
You said this is how you would implement try/catch, but I don't see a correspondence between your code and how try/catch behaves.
Is this an alternative solution for exception handling? Sorry, I'm just not clear what you are proposing here.
Ekhnat0n said...
the asm commands
bset
bclr
bchg
are among the fastest you can find
Euphoria is coded in C, not assembly.
Speed of handling exceptions is generally not critical, since they are, well, exceptions.
On the other hand, the overhead of the implementation is a factor.
- David