Commit f1c3a8da7ad90e40aa74c4139f1461a55f1bd876

Thomas de Grivel 2013-12-21T20:23:49

Make ATOM-STR fallback to (FORMAT NIL ~A ...) instead of (STRING ...).

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/str.lisp b/str.lisp
index 1aee813..64ed614 100644
--- a/str.lisp
+++ b/str.lisp
@@ -85,7 +85,7 @@
 (defgeneric atom-str (x))
 
 (defmethod atom-str (x)
-  (string x))
+  (format nil "~A" x))
 
 (defmethod atom-str ((x null))
   "")