From 25d48e8ac5af561b6eba0599706426ebbaaac4d9 Mon Sep 17 00:00:00 2001 From: yamacir-kit Date: Tue, 3 Oct 2023 00:55:15 +0900 Subject: [PATCH] Update procedure `inexact?` to built-in Signed-off-by: yamacir-kit --- README.md | 6 +++--- VERSION | 2 +- basis/r4rs.ss | 12 +----------- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 89291386f..4b289dc3b 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ Procedures for each standard are provided by the following R7RS-style libraries: cmake -B build -DCMAKE_BUILD_TYPE=Release cd build make package -sudo apt install build/meevax_0.5.8_amd64.deb +sudo apt install build/meevax_0.5.9_amd64.deb ``` or @@ -131,9 +131,9 @@ sudo rm -rf /usr/local/share/meevax | Target Name | Description |-------------|------------- -| `all` | Build shared-library `libmeevax.0.5.8.so` and executable `meevax` +| `all` | Build shared-library `libmeevax.0.5.9.so` and executable `meevax` | `test` | Test executable `meevax` -| `package` | Generate debian package `meevax_0.5.8_amd64.deb` +| `package` | Generate debian package `meevax_0.5.9_amd64.deb` | `install` | Copy files into `/usr/local` directly ## Usage diff --git a/VERSION b/VERSION index 659914ae9..416bfb0a2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.8 +0.5.9 diff --git a/basis/r4rs.ss b/basis/r4rs.ss index 550cb0aa3..61ee03d79 100644 --- a/basis/r4rs.ss +++ b/basis/r4rs.ss @@ -52,6 +52,7 @@ rational? integer? exact? + inexact? = < > <= >= + * - / abs @@ -332,17 +333,6 @@ (car alist) (assoc (cdr alist))))))) - (define (inexact? z) - (define (inexact-complex? x) - (and (imaginary? x) - (or (inexact? (real-part x)) - (inexact? (imag-part x))))) - (define (floating-point? z) - (or (single-float? z) - (double-float? z))) - (or (inexact-complex? z) - (floating-point? z))) - (define (zero? n) (= n 0))