mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 09:17:35 +02:00
Added missing parens... d'oh
This commit is contained in:
parent
a1f7e3a8ee
commit
b3229da15e
2 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@
|
|||
(define (with-output-to-file string thunk)
|
||||
;; Have to do this the long way since parameterize is not available
|
||||
(let ((old (current-output-port))
|
||||
(new (current-output-port '<param-convert> (open-output-file string))))
|
||||
(new ((current-output-port '<param-convert>) (open-output-file string))))
|
||||
(dynamic-wind
|
||||
(lambda () (current-output-port '<param-set!> new))
|
||||
thunk
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;(import (scheme base)
|
||||
; (scheme file)
|
||||
; (scheme write))
|
||||
(import (scheme base)
|
||||
(scheme file)
|
||||
(scheme write))
|
||||
|
||||
; TODO: I think this compiles OK (test), but interpreter does not like it:
|
||||
;cyclone> ( call-with-output-file "test.txt" (lambda () #f))
|
||||
|
@ -32,7 +32,7 @@
|
|||
(define my-param
|
||||
(my-make-parameter (current-output-port)));(Cyc-stdout)))
|
||||
(define old (my-param))
|
||||
(define new (my-param '<param-convert> (open-output-file "test.txt")))
|
||||
(define new ((my-param '<param-convert>) (open-output-file "test.txt")))
|
||||
; The next line seems to crash in icyc but not in compiled code (until write, at least). what's going on??
|
||||
(my-param '<param-set!> new)
|
||||
(write 'test (my-param))
|
||||
|
|
Loading…
Add table
Reference in a new issue