* (ikarus flonums) now exports its prims.

This commit is contained in:
Abdulaziz Ghuloum 2007-05-05 02:34:37 -04:00
parent 4c66daca01
commit 6b327d7892
3 changed files with 10 additions and 10 deletions

Binary file not shown.

View File

@ -1,23 +1,23 @@
(library (ikarus flonums)
(export)
(import (scheme))
(export string->flonum flonum->string flonum?)
(import
(except (ikarus) flonum->string string->flonum flonum?)
(rename (only (ikarus) flonum?) (flonum? sys:flonum?)))
(define flonum?
(lambda (x) (flonum? x)))
(let ()
(define (flonum->string x)
(or (foreign-call "ikrt_flonum_to_string" x)
(error 'flonum->string "~s is not a flonum" x)))
(define (string->flonum x)
(cond
[(string? x) (foreign-call "ikrt_string_to_flonum" x)]
[else
(error 'string->flonum "~s is not a string" x)]))
(error 'string->flonum "~s is not a string" x)])))
(primitive-set! 'flonum?
(lambda (x) (flonum? x)))
(primitive-set! 'flonum->string flonum->string)
(primitive-set! 'string->flonum string->flonum)
))
(library (ikarus generic-arithmetic)
(export)

View File

@ -26,7 +26,7 @@
"ikarus.collect.ss"
"ikarus.records.ss"
"ikarus.cxr.ss"
"libnumerics.ss"
"ikarus.numerics.ss"
"libguardians.ss"
"libcore.ss"
"libchezio.ss"