hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

numerical procedures raise incorrect message #207

Closed hyln9 closed 10 years ago

hyln9 commented 10 years ago

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
  5. &who: negative?
  6. &message: "not a number"
  7. &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.

Launchpad Details: #LP388821 Derick Eddington - 2009-06-18 02:41:00 -0400

hyln9 commented 10 years ago

Fixed in 1839. positive? as well.

Launchpad Details: #LPC Abdulaziz Ghuloum - 2009-08-02 08:02:05 -0400