We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9dc15d commit a9f0679Copy full SHA for a9f0679
2 files changed
ac.scm
@@ -944,8 +944,14 @@
944
(flush-output port)))
945
'nil)
946
947
+(define (ar-display arg port)
948
+ (display (if (eq? 'num (ar-type arg))
949
+ (exact->inexact arg)
950
+ arg)
951
+ port))
952
+
953
(xdef swrite (lambda args (printwith write args)))
-(xdef disp (lambda args (printwith display args)))
954
+(xdef disp (lambda args (printwith ar-display args)))
955
956
; sread = scheme read. eventually replace by writing read
957
arc.arc
@@ -939,12 +939,7 @@
939
; the rep of these. That would also require hacking the reader.
940
941
(def pr args
942
- (if cdr.args
943
- (map1 pr args)
- (isa car.args 'num)
- (disp:real car.args)
- 'else
- (disp car.args))
+ (map1 disp args)
(car args))
(def prt args
0 commit comments