Commit b0b88b829c9b524283e83558885a321e04d64195

Thomas de Grivel 2017-06-18T14:36:15

stream-element-type

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/babel-stream.lisp b/babel-stream.lisp
index 3a6b7b4..258c41b 100644
--- a/babel-stream.lisp
+++ b/babel-stream.lisp
@@ -34,6 +34,9 @@
   (assert (equal '(unsigned-byte 8)
                  (stream-element-type (stream-underlying-stream stream)))))
 
+(defmethod stream-element-type ((stream babel-stream))
+  'character)
+
 (defclass babel-input-stream (babel-stream input-stream)
   ())