3 ms·
They are callbacks, but when they return they don't return to you. Instead they return back up the stack to whoever called the function that signalled the condi
by db48x 6y ago
They are callbacks, but when they return they don't return to you. Instead they return back up the stack to whoever called the function that signalled the condition.
- phoe-krk 6y ago> Instead they return back up the stack to whoever called the function that signalled the condition. Not necessarily. They may return to any point on the stack that has been "announced" as a valid return point. One can compute a list of these return points, choose which one to utilize, and under which conditions. That's what constitutes the power of restarts (and non-local exits) in Common Lisp.
- kazinator 6y agoWhen a condition handler returns normally, it is understood to have declined to handle the condition; the search continues for another handler.