Nonlocal Transfer

Exception Handling

Nonlocal transfer

Allows a function or routine to transfer control back to its caller but does not permit further execution in the caller after the return point. This contrasts with standard returns, which transfer control back to the point immediately after the function call, allowing the caller to continue executing.

Nonlocal transfers are often used in contexts where an error or exception occurs, and it is necessary to exit from a deep call stack without returning all the way up sequentially. This mechanism can be achieved using exceptions or similar constructs, where the program “jumps” out of a routine without resuming the original execution path.