Alan Ruttenberg alanralanr@comcast.net writes:
I have checked in changes that implement this for openmcl.
sldb-return-from-frame: "reads an expression in the minibuffer and causes the function to return that value, evaluated in the context of the frame"
sldb-restart-frame: "causes the frame to restart execution with the same arguments as it was called originally"
You can use these functions in an sldb buffer with cursor on the frame you want to restart or return from.
Very nice!
Does this functionality exist in other lisps?
I'm pretty sure "return-from-frame" exists in SBCL, Allgero, Lispworks, and CLISP. It's not implemented in CMUCL/x86, but that would be a interesting exercise. "restart-frame" probably works only on certain frames, but is definitely a useful command.
Helmut.