mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-25 04:55:04 +02:00
Debug
This commit is contained in:
parent
f02d998dbc
commit
5a4cfea75c
1 changed files with 14 additions and 6 deletions
20
test2.scm
20
test2.scm
|
@ -7,9 +7,17 @@
|
||||||
;Error: Unable to evaluate: ((procedure () ...) <port>)
|
;Error: Unable to evaluate: ((procedure () ...) <port>)
|
||||||
|
|
||||||
; TODO: need to get this working in compiler, then try interpreter:
|
; TODO: need to get this working in compiler, then try interpreter:
|
||||||
(with-output-to-file
|
;(with-output-to-file
|
||||||
"test.out"
|
; "test.out"
|
||||||
(lambda ()
|
; (lambda ()
|
||||||
(write 'hello)
|
; (write 'hello)
|
||||||
(display " ")
|
; (display " ")
|
||||||
(display 'world)))
|
; (display 'world)))
|
||||||
|
|
||||||
|
; BEGIN test code - trying to get definition of with-output-to-file to work
|
||||||
|
(define old (current-output-port))
|
||||||
|
(define new (current-output-port '<param-convert> (open-output-file "test.txt")))
|
||||||
|
(current-output-port '<param-set!> new)
|
||||||
|
(write 'test (current-output-port))
|
||||||
|
;(write 'hello-world)
|
||||||
|
; END test code
|
||||||
|
|
Loading…
Add table
Reference in a new issue