[Bug-openmcl] printing complex numbers

bryan o'connor bryan-openmcl at lunch.org
Wed Mar 3 18:47:11 MST 2004


clhs 22.1.3.1.4 says a complex number is printed starting with
#C.  i'm not sure if that means that #c is or isn't allowed.

definitely a trivial patch..

                          ...bryan


-------------- next part --------------
Index: level-1/l1-io.lisp
===================================================================
RCS file: /usr/local/tmpcvs/ccl-0.14-dev/ccl/level-1/l1-io.lisp,v
retrieving revision 1.10
diff -u -r1.10 l1-io.lisp
--- level-1/l1-io.lisp	2 Feb 2004 16:14:18 -0000	1.10
+++ level-1/l1-io.lisp	4 Mar 2004 01:41:50 -0000
@@ -565,7 +565,7 @@
 
 ;;>> Doesn't do *print-level* truncation
 (defmethod print-object ((c complex) stream)
-  (pp-start-block stream "#c(")
+  (pp-start-block stream "#C(")
   (print-object (realpart c) stream)
   (pp-space stream)
   (print-object (imagpart c) stream)
-------------- next part --------------



More information about the Bug-openmcl mailing list