Re: %active-restart
Alan Ruttenberg <[email protected]> Thu, 8 Sep 2005 09:30:12 -0400
| Newsgroups | gmane.lisp.openmcl.bugs |
|---|---|
| Message-ID | <[email protected]> |
Good analysis! I concur. So this is a documentation bug for :test-function. In fact http://www.lisp.org/HyperSpec/Issues/iss075-writeup.html explicitly says: 7. Add a :TEST keyword to RESTART-CASE [...] then functions such as FIND-RESTART, COMPUTE-RESTARTS, and INVOKE-RESTART [see #4 above] will not consider the restart to be active. The argument to the test function is the value of the optional condition argument most of these functions accept (or nil for invoke-restart, since it doesn't have that argument)... Clearest thing, IMHO, would have been to define the test function to take an *optional* argument, a condition, to parallel the other definitions. Thanks! -Alan