2005-09-27 12:18:04 -04:00
|
|
|
(define (display-to-string val)
|
|
|
|
(let ((exp-port (open-output-string)))
|
2005-09-27 12:31:46 -04:00
|
|
|
(display val exp-port)
|
2005-09-27 12:18:04 -04:00
|
|
|
(get-output-string exp-port)))
|
|
|
|
|
|
|
|
;;expression as string
|
2005-09-27 12:31:46 -04:00
|
|
|
(define (write-to-string val)
|
2005-09-27 12:18:04 -04:00
|
|
|
(let ((exp-port (open-output-string)))
|
2005-09-27 12:31:46 -04:00
|
|
|
(write val exp-port)
|
2005-09-27 12:18:04 -04:00
|
|
|
(get-output-string exp-port)))
|
|
|
|
|
|
|
|
(define (on/off-option-processor name)
|
|
|
|
(lambda (option arg-name arg ops)
|
|
|
|
(cons (cons name #t) ops)))
|
|
|
|
|