Guile port example - print a message to show the error is expected
This commit is contained in:
parent
149972542e
commit
6e794da3f3
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@
|
|||
(lambda ()
|
||||
(print-int (current-output-port) 314159))))
|
||||
(lambda args
|
||||
(display "Attempting to write to a string or soft port will result in this error:")
|
||||
(newline)
|
||||
(write args) (newline)))
|
||||
|
||||
;; Read from a file port. Note that it is a bad idea to mix Scheme and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue