aboutsummaryrefslogtreecommitdiff
path: root/src/interp/vmlisp.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/vmlisp.lisp')
-rw-r--r--src/interp/vmlisp.lisp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/interp/vmlisp.lisp b/src/interp/vmlisp.lisp
index c2d66fd9..e422fa18 100644
--- a/src/interp/vmlisp.lisp
+++ b/src/interp/vmlisp.lisp
@@ -1039,7 +1039,13 @@
(defun CHAR2NUM (c) (char-code (character c)))
-(defun CGREATERP (s1 s2) (string> (string s1) (string s2)))
+;; Returns truthvalue (nil or t) if s1 compares lexicographically
+;; greater than s2. Note: It is essential that this function returns
+;; a canonical Boolean value because parts of the system use it in
+;; contexts where generalized Boolean values are confusing.
+(defun CGREATERP (s1 s2)
+ (cond ((string> (string s1) (string s2)) t)))
+
(define-function 'STRGREATERP #'CGREATERP)