Hello,
I am wondering how the extension of try..except block affects the compiled program.
So, what is the difference in compiled output between this:
// [other code]
try
AProcThatDoesNotFail(); // ... does not fail, so does not strictly need to stay here
AProcThatCanFail();
except
// [other code]
and this:
// [other code]
AProcThatDoesNotFail();
try
AProcThatCanFail();
except
// [other code]
I know from a previous post in this forums that try..except block tells something like "in event of exception jump to first exception handling block, but I was wondering how this gets actually implemented and what is the effect of a bigger sequence of instructions to be "included in this handling" (for example it could be that before starting the try..except block some kind of callback is registered so that on a exception this calback is executed, and in this case the length of the sequence doesn't matter, i dont' know, I am just curious).
Thank you