Re: Robert Craig... One Wish Please

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

>From Robert Craig:
>A global exception handler has been on my list for a long time,
>at least in principle. It wouldn't be hard to implement,
>but it raises some issues that have to be examined carefully,
>
>    - It might preclude doing an eventual full treatment of
>      exceptions like C++ and other languages, where
>      each block of statements can have its own handler.

Ok, so a global exception handler is not difficult. Can you comment on the 
difficulty of implementing full treatment of exceptions?

And will it have 'proper' try/catch syntax, rather than through a procedural 
interface? I would think the first is easier to understand.
i.e.

try <exception>
    --some code
    --exception_causing code
    --some more code
catch <exception>
    --deal with it.
end try

OR
==

procedure catch()
    --deal with it.
end procedure

set_try("<exception>", routine_id("catch"))
--some code
--exception_causing code
--some more code
end_try("<exception>")


Also, if we could define exceptions, it would be nice... :P
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

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

Search



Quick Links

User menu

Not signed in.

Misc Menu