Summary
condition-predicate's result is too picky
Metadata
- Id: 6fdbb5395b00127b539d8f1ad0baa3a670641bee
- Trac id: 708
- Type: defect
- Reporter: johnwcowan
- Owner:
- Cc:
- Status: closed
- Component: unknown
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: 4.9.0
- Version: 4.7.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2011-09-28 23:00:52 UTC
- Keywords:
Description
The result of `(condition-predicate 'foo)` is documented] to accept any argument and return `#t` iff it is a condition of kind `foo`. In fact, if its argument is not a condition, it raises an exception.
This can be resolved by a doc fix or a code fix. Since basic predicates generally accept any object, I think these should too.
Changes and comments
[2011-10-03 10:32:48 UTC] ckeen changed status from new to closed
[2011-10-03 10:32:48 UTC] ckeen set resolution to fixed
[2011-10-03 10:32:48 UTC] ckeen wrote:
The code has been fixed to return #t only if the condition kind is matched #f on all other arguments. Comitted in master with commit fcff2bc347a95259907de78e019cf70252e31d49
[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted