For Tinyscheme version 1.37
integer? and its underlying C function is_integer wrongly
report that some non-numerical objects are integers.
Here it consistently gives:
> (integer? ())
On examining the source code, I see that is_integer makes
no test of is_number(p) and it looks like if a particular
bit is set for any member of the discriminated union,
is_integer will return TRUE.
Log in to post a comment.