infinities are no longer integers
authorAndy Wingo <wingo@pobox.com>
Sat, 22 Jan 2011 23:06:24 +0000 (00:06 +0100)
committerAndy Wingo <wingo@pobox.com>
Sat, 22 Jan 2011 23:06:24 +0000 (00:06 +0100)
commit8e43ed5d0bd035fae0ba106b245f03559cf529ec
treeda95fa49df5c7520a99ab30b238c525f9ed7a128
parent0715410946949a8c6431b1661afbb03db8433697
infinities are no longer integers

* libguile/numbers.c (scm_is_integer): Infinities are not integers, per
  the R6RS.
  (scm_even_p, scm_odd_p): Passing an infinity to even? or odd? is an
  error.

* test-suite/tests/numbers.test ("integer?"): Adapt test.
  ("expt"): Add tests for +inf.0 and -inf.0 exponents.

* NEWS: Add NEWS entries.
NEWS
doc/ref/api-data.texi
libguile/numbers.c
test-suite/tests/numbers.test