1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-24 12:20:20 +02:00

Implemented eq and equal built-in predicates.

* module/language/elisp/runtime/function-slot.scm: Implement eq and equal.
* test-suite/tests/elisp-compiler.test: Test them.
This commit is contained in:
Daniel Kraft 2009-07-18 17:21:55 +02:00
parent 74c009dadc
commit e905e490fa
2 changed files with 26 additions and 0 deletions

View file

@ -26,6 +26,15 @@
; functions are implemented as predefined function bindings here.
; Equivalence and equalness predicates.
(built-in-func eq (lambda (a b)
(elisp-bool (eq? a b))))
(built-in-func equal (lambda (a b)
(elisp-bool (equal? a b))))
; Number predicates.
(built-in-func floatp (lambda (num)