How are exceptions implemented under the hood?

前端 未结 10 1465
粉色の甜心
粉色の甜心 2020-12-07 07:43

Just about everyone uses them, but many, including me simply take it for granted that they just work.

I am looking for high-quality material. Languages I use are: Ja

10条回答
  •  时光说笑
    2020-12-07 08:21

    setjmp() and longjmp() usually.

    Exception catching does have a non-trivial cost, but for most purposes it's not a big deal.

提交回复
热议问题