mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
last arg of fn body should be displayed
This commit is contained in:
parent
a328b3fb4a
commit
fd3e1f10d3
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
(define-environment-monad Show-Env
|
||||
(sequence: sequence)
|
||||
(bind: fn)
|
||||
(bind: %fn)
|
||||
(bind-fork: fn-fork)
|
||||
(local: %with)
|
||||
(local!: update!)
|
||||
|
@ -32,6 +32,11 @@
|
|||
(writer env-writer env-writer-set!)
|
||||
(output env-output env-output-set!)))
|
||||
|
||||
(define-syntax fn
|
||||
(syntax-rules ()
|
||||
((fn vars expr ... fmt)
|
||||
(%fn vars expr ... (displayed fmt)))))
|
||||
|
||||
;; The base formatting handles outputting raw strings and a simple,
|
||||
;; configurable handler for formatting objects.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue