summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--liblali.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index cb99cfc..a0db7e5 100644
--- a/README.md
+++ b/README.md
@@ -56,13 +56,12 @@ numbers) or by `-` (for negative numbers).
There is support for the five arithmetic operations `+`, `-`, `*`, `/`, `%` (with
`%` the operands are automatically converted to integer) as well as the relational
-operations `!` (different), `<`, `>`:
+operations `<`, `>`:
(- +5) ; -5
(- +5 +3.2 +.6) ; +1.2
(< +2 +4 +6.8) ; t
(> +4 +8) ; f
- (! +4 +4) ; f
#### Random number operation
diff --git a/liblali.c b/liblali.c
index 80d27fc..efbcd3f 100644
--- a/liblali.c
+++ b/liblali.c
@@ -1027,7 +1027,7 @@ DEFINE_PRIMITIVE_ARITHMETIC(primitiveRemainder, %, "+1", atoi, int , "%d" , "+%d
} \
}
-DEFINE_PRIMITIVE_RELATIONAL(primitiveDifferent, !=, false)
+/* DEFINE_PRIMITIVE_RELATIONAL(primitiveDifferent, !=, false) */
/* DEFINE_PRIMITIVE_RELATIONAL(primitiveEqual, ==, true) */
DEFINE_PRIMITIVE_RELATIONAL(primitiveLess, < , true)
/* DEFINE_PRIMITIVE_RELATIONAL(primitiveLessEqual, <=, true) */
@@ -1101,7 +1101,7 @@ Primitive primitives[] = {
{ "/", 1, -1, primitiveDivide },
{ "%", 1, -1, primitiveRemainder },
/* { "=", 1, -1, primitiveEqual }, */
- { "!", 1, -1, primitiveDifferent },
+ /* { "!", 1, -1, primitiveDifferent }, */
{ "<", 1, -1, primitiveLess },
/* { "<=", 1, -1, primitiveLessEqual }, */
{ ">", 1, -1, primitiveGreater },