* moved eof-object? to the predicates library.

This commit is contained in:
Abdulaziz Ghuloum 2007-05-05 03:27:53 -04:00
parent 2931c3e769
commit 0eaf9be5a7
3 changed files with 13 additions and 8 deletions

Binary file not shown.

View File

@ -11,9 +11,6 @@
(primitive-set! 'void
(lambda () (void)))
(primitive-set! 'eof-object?
(lambda (x) (eof-object? x)))
(primitive-set! 'fxadd1
(lambda (n)

View File

@ -1,14 +1,16 @@
(library (ikarus predicates)
(export fixnum? flonum? bignum? number? complex? real? rational?
integer? exact?)
integer? exact? eof-object?)
(import
(except (ikarus) fixnum? flonum? bignum? number? complex? real?
rational? integer? exact?)
(rename (only (ikarus) fixnum? flonum? bignum?)
rational? integer? exact? eof-object?)
(rename (only (ikarus) fixnum? flonum? bignum? eof-object?)
(fixnum? sys:fixnum?)
(flonum? sys:flonum?)
(bignum? sys:bignum?)))
(bignum? sys:bignum?)
(eof-object? sys:eof-object?)
))
(define fixnum?
(lambda (x) (sys:fixnum? x)))
@ -54,4 +56,10 @@
[(sys:bignum? x) #t]
[(sys:flonum? x) #f]
[else
(error 'exact? "~s is not a number" x)]))))
(error 'exact? "~s is not a number" x)])))
(define eof-object?
(lambda (x)
(sys:eof-object? x)))
)