* ikarus.guardians.ss now exports its primitives.
This commit is contained in:
parent
b4659ec599
commit
897f6f3596
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -3,9 +3,9 @@
|
||||||
;;; from Dybvig et al. Guardians paper.
|
;;; from Dybvig et al. Guardians paper.
|
||||||
|
|
||||||
(library (ikarus guardians)
|
(library (ikarus guardians)
|
||||||
(export)
|
(export make-guardian)
|
||||||
(import (scheme))
|
(import (except (ikarus) make-guardian))
|
||||||
(primitive-set! 'make-guardian
|
(define make-guardian
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(let ([tc
|
(let ([tc
|
||||||
(let ([x (cons #f #f)])
|
(let ([x (cons #f #f)])
|
|
@ -75,8 +75,6 @@
|
||||||
(error 'string->flonum "~s is not a string" x)])))
|
(error 'string->flonum "~s is not a string" x)])))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(library (ikarus generic-arithmetic)
|
(library (ikarus generic-arithmetic)
|
||||||
(export + - * = < <= > >= add1 sub1 quotient remainder
|
(export + - * = < <= > >= add1 sub1 quotient remainder
|
||||||
quotient+remainder number->string)
|
quotient+remainder number->string)
|
||||||
|
@ -849,18 +847,4 @@
|
||||||
[(flonum? x) (foreign-call "ikrt_fl_sqrt" x)]
|
[(flonum? x) (foreign-call "ikrt_fl_sqrt" x)]
|
||||||
[(fixnum? x) (foreign-call "ikrt_fx_sqrt" x)]
|
[(fixnum? x) (foreign-call "ikrt_fx_sqrt" x)]
|
||||||
[else (error 'sqrt "unsupported ~s" x)])))
|
[else (error 'sqrt "unsupported ~s" x)])))
|
||||||
|
|
||||||
;(primitive-set! 'even? even?)
|
|
||||||
;(primitive-set! 'odd? odd?)
|
|
||||||
;(primitive-set! 'max max)
|
|
||||||
;(primitive-set! 'min min)
|
|
||||||
;(primitive-set! 'complex? complex?)
|
|
||||||
;(primitive-set! 'real? real?)
|
|
||||||
;(primitive-set! 'rational? rational?)
|
|
||||||
;(primitive-set! 'exact? exact?)
|
|
||||||
;(primitive-set! 'inexact? inexact?)
|
|
||||||
;(primitive-set! 'integer? integer?)
|
|
||||||
;(primitive-set! 'exact->inexact exact->inexact)
|
|
||||||
;(primitive-set! 'modulo modulo)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
"ikarus.records.ss"
|
"ikarus.records.ss"
|
||||||
"ikarus.cxr.ss"
|
"ikarus.cxr.ss"
|
||||||
"ikarus.numerics.ss"
|
"ikarus.numerics.ss"
|
||||||
"libguardians.ss"
|
"ikarus.guardians.ss"
|
||||||
"libcore.ss"
|
"libcore.ss"
|
||||||
"libchezio.ss"
|
"libchezio.ss"
|
||||||
"libhash.ss"
|
"libhash.ss"
|
||||||
|
|
Loading…
Reference in New Issue