* moved "not" to ikarus.predicates

(rationale: (not x) == (false? x))
This commit is contained in:
Abdulaziz Ghuloum 2007-05-05 04:28:40 -04:00
parent 828df98fa8
commit 4ada254c44
4 changed files with 13 additions and 22 deletions

Binary file not shown.

View File

@ -27,23 +27,6 @@
($char->fixnum x)))
(primitive-set! 'vector-length
(lambda (x)
(unless (vector? x)
(error 'vector-length "~s is not a vector" x))
($vector-length x)))
(primitive-set! 'not
(lambda (x) (if x #f #t)))

View File

@ -3,14 +3,14 @@
(export fixnum? flonum? bignum? number? complex? real? rational?
integer? exact? eof-object? immediate? boolean? char?
vector? string? procedure? null? pair? symbol?)
vector? string? procedure? null? pair? symbol? not)
(import
(except (ikarus) fixnum? flonum? bignum? number? complex? real?
rational? integer? exact? eof-object? immediate?
boolean? char? vector? string? procedure? null?
pair? symbol?)
pair? symbol? not)
(rename (only (ikarus) fixnum? flonum? bignum? eof-object?
immediate? boolean? char? vector? string? procedure?
@ -86,4 +86,5 @@
(define pair? (lambda (x) (sys:pair? x)))
(define symbol? (lambda (x) (sys:symbol? x)))
(define not (lambda (x) (if x #f #t)))
)

View File

@ -1,11 +1,18 @@
(library (ikarus vectors)
(export make-vector)
(export make-vector vector-length)
(import
(except (ikarus) make-vector)
(except (ikarus) make-vector vector-length)
(only (scheme)
$fx= $fx>= $fx+ $vector-set!
$make-vector))
$make-vector $vector-length))
(define vector-length
(lambda (x)
(unless (vector? x)
(error 'vector-length "~s is not a vector" x))
($vector-length x)))
(module (make-vector)
(define fill!