Guile/SCM int? vs. integer?

Tom McKay (Tom_Mckay@avanticorp.com)
Fri, 23 Feb 1996 09:20:27 -0500

>From R4RS, I see the following on page 21
(integer? 3+0i) => #t
(integer? 3.0) => #t
(integer? 8/4) => #t
This isn't true in Guile. It appears that the R4RS functionality for
"integer?" is equivalent to the Guile routine "int?". Is there a
reason for this? Here are the Guile results
(integer? 3) => #t
(integer? 3+0i) => #f
(integer? 3.0) => #f
(integer? 8/4) => #f

(int? 3) => #t
(int? 3+0i) => #t
(int? 3.0) => #t
(int? 8/4) => #t

-Tom

------------------------------------------------------------------------
Tom McKay PO Box 13665
Senior Software Engineer Research Triangle Park, NC
27713
Avant! Corporation 919.941.6628
Tom_McKay@avanticorp.com Fax: 919.941.6700
-----------------------------------------------------------------------