Skip to content

Commit a9f0679

Browse files
committed
.
1 parent a9dc15d commit a9f0679

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

ac.scm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,14 @@
944944
(flush-output port)))
945945
'nil)
946946

947+
(define (ar-display arg port)
948+
(display (if (eq? 'num (ar-type arg))
949+
(exact->inexact arg)
950+
arg)
951+
port))
952+
947953
(xdef swrite (lambda args (printwith write args)))
948-
(xdef disp (lambda args (printwith display args)))
954+
(xdef disp (lambda args (printwith ar-display args)))
949955

950956
; sread = scheme read. eventually replace by writing read
951957

arc.arc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -939,12 +939,7 @@
939939
; the rep of these. That would also require hacking the reader.
940940

941941
(def pr args
942-
(if cdr.args
943-
(map1 pr args)
944-
(isa car.args 'num)
945-
(disp:real car.args)
946-
'else
947-
(disp car.args))
942+
(map1 disp args)
948943
(car args))
949944

950945
(def prt args

0 commit comments

Comments
 (0)