Re: Try/Catch

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu