Try catch statements in C

前端 未结 13 1483
眼角桃花
眼角桃花 2020-11-27 10:06

I was thinking today about the try/catch blocks existent in another languages. Googled for a while this but with no result. From what I know, there is not such a thing as tr

13条回答
  •  眼角桃花
    2020-11-27 10:42

    Perhaps not a major language (unfortunately), but in APL, theres the ⎕EA operation (stand for Execute Alternate).

    Usage: 'Y' ⎕EA 'X' where X and Y are either code snippets supplied as strings or function names.

    If X runs into an error, Y (usually error-handling) will be executed instead.

提交回复
热议问题