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

format ~d for all numbers #197

Closed hyln9 closed 10 years ago

hyln9 commented 10 years ago

The exception message below is wrong. All number types should be format-able with ~d (but not all can be format-ed with ~b, ~o, or ~x), right?

Ikarus Scheme version 0.0.4-rc1+ (revision 1746, build 2009-01-14) Copyright (c) 2006-2008 Abdulaziz Ghuloum

(define x -23.4+45e3i) (number? x)

t

(format "~d" x) Unhandled exception Condition components:

  1. &assertion
  2. &who: format
  3. &message: "not a number"
  4. &irritants: (-23.4+45000.0i)

Launchpad Details: #LP317276 Derick Eddington - 2009-01-14 17:02:27 -0500

hyln9 commented 10 years ago

Fixed in revision 1754. Thanks.

Launchpad Details: #LPC Abdulaziz Ghuloum - 2009-04-06 09:53:47 -0400