Today, when I write a piece of code as follows:
try { ... } catch (Exception e) { ... }
I suddenly understand that
catch (Exception e) { ... }
Operator
very similar to function declaration. And I vaguely remembered that exception handling is related to the progress / manipulation of the stack.
So, what is the exception handling code compiled into? I have the feeling that the above code is just a special / convenient syntax to facilitate our coding, but in fact, maybe our code ends up in an automatic generated exception handling function? I hope I get it.
c # exception exception-handling
smwikipedia
source share