Re: Is this a good use for restart-bind?



Peter Seibel <peter@xxxxxxxxxxxxxxx> writes:

Alan Crowe <alan@xxxxxxxxxxxxxxxxxxxxxxx> writes:

;;;; Using restart-bind to offer explanations for errors

This seems reasonable. Another option would be to figure out how to
encode enough information into a condition object be able to generate
the explanation elsewhere.

This is in fact what SBCL does for its reference conditions, which
generates text of the form

See also:
The ANSI Standard, Macro DEFCONSTANT
The SBCL Manual, Node "Idiosyncrasies"

when SBCL is running at a terminal and someone ends up redefining a
constant incompatibly. If they are running in SLIME, they get
clickable links for the reference sources. At present this isn't done
with non-restarting restarts but through the condition printer
directly.

Christophe
.