Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
Shian_Lee said...

Handling exceptions can be done in a more high-level way, which is suitable to the overall usage of Euphoria.

I'm curious. How do you suggest these exceptions he handled?

I'm assuming that anything that ends up halting Euphoria is an exception.

I can see routines returning error codes, and in many cases they already do.

But a much more typical case is an indexing error, such as:

x = s[length(s)+1] 

What innovation would you suggest for this? Because of the way indexing and slicing are done, I don't see how and error code can be returned, and from what.

- David

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

Search



Quick Links

User menu

Not signed in.

Misc Menu