Christopher Howard <christopher.how...@qlfiles.net> writes: > Hi, in another lisp I have been working with, it has <, >, and == > (structure equality) operators which can take string arguments, number > arguments, or a mixture of both. But it seems in guile that there are > separate comparison operators for strings and for numbers. This makes > sense but is not very convenient for my present purpose. Is there some > other guile operators or extension operators that will handle both? I > could make some I'm sure, but I don't want to reinvent the wheel.
(use-modules (oop goops)) (define-method (< (a <string>) . rest) (apply string<? a rest)) (< "g" "b") ;; => #f -- David Kastrup