numerical procedures raise incorrect message

Bug #388821 reported by Derick Eddington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Low
Abdulaziz Ghuloum

Bug Description

Ikarus Scheme version 0.0.4-rc1+ (revision 1806, build 2009-06-09)
Copyright (c) 2006-2009 Abdulaziz Ghuloum

> (number? 4-7i)
#t
> (abs 4-7i)
Unhandled exception
 Condition components:
   1. &assertion
   2. &who: abs
   3. &message: "not a number"
   4. &irritants: (4-7i)
> (negative? 4-7i)
Unhandled exception
 Condition components:
   1. &assertion
   2. &who: negative?
   3. &message: "not a number"
   4. &irritants: (4-7i)
>

R6RS says these procedures take a real, so I'd say the message should be "not a real".

I did not check if there are more such incorrect messages for other numerical procedures.

Related branches

summary: - abs raises incorrect message
+ numerical procedures raise incorrect message
description: updated
Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in 1839. positive? as well.

Changed in ikarus:
assignee: nobody → Abdulaziz Ghuloum (aghuloum)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.