projects
/
fiveam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix VARSYMP for empty symbol names.
[fiveam.git]
/
src
/
utils.lisp
diff --git
a/src/utils.lisp
b/src/utils.lisp
index
d23aff7
..
49d552f
100644
(file)
--- a/
src/utils.lisp
+++ b/
src/utils.lisp
@@
-92,7
+92,10
@@
ELSE will be executed."
(acond2 ,@others)))))))
(defun varsymp (x)
(acond2 ,@others)))))))
(defun varsymp (x)
- (and (symbolp x) (eq (aref (symbol-name x) 0) #\?)))
+ (and (symbolp x)
+ (let ((name (symbol-name x)))
+ (and (>= (length name) 2)
+ (char= (char name 0) #\?)))))
(defun binding (x binds)
(labels ((recbind (x binds)
(defun binding (x binds)
(labels ((recbind (x binds)