projects
/
fiveam.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78a7b9d
)
Fix VARSYMP for empty symbol names.
small-fixes
author
Olof-Joachim Frahm
<olof@macrolet.net>
Fri, 17 May 2013 23:42:56 +0000
(
01:42
+0200)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Fri, 14 Jun 2013 17:59:59 +0000
(19:59 +0200)
src/utils.lisp
patch
|
blob
|
history
diff --git
a/src/utils.lisp
b/src/utils.lisp
index
d23aff7
..
f81950f
100644
(file)
--- a/
src/utils.lisp
+++ b/
src/utils.lisp
@@
-92,7
+92,10
@@
ELSE will be executed."
(acond2 ,@others)))))))
(defun varsymp (x)
- (and (symbolp x) (eq (aref (symbol-name x) 0) #\?)))
+ (and (symbolp x)
+ (let ((symbol-name (symbol-name x)))
+ (and (not (emptyp symbol-name))
+ (char= (char symbol-name 0) #\?)))))
(defun binding (x binds)
(labels ((recbind (x binds)