Subject: mailing-list for TeXmacs Users
List archive
From : Wolfgang Lindner <address@hidden>- To: "address@hidden" <address@hidden>
- Subject: read in TeXmacs's Guile
- Date: Mon, 12 Dec 2022 16:11:19 +0100
Hi group,
Currently I work through the book of G Springer about Scheme using TeXmacs/Guile.
Until ch. 5 there were no problems and all programs run like a charm.
Now in Ch.6 about input/output I run into problems.
Here is a typical one.
;------------------------------------------------------------------
; - Program 6.6, pg. 174 -
(define read-demo
(lambda ()
(display "Enter data (enter done when finished): ")
(let ((response (read)))
(cond
((eq? response 'done) (display "Thank you. Good-bye."))
(else (display "You entered: ")
(write response)
(newline)
(read-demo))))))
; - End Program -
;------------------------------------------------------------------
Is it possible to use Texmacs-Guile interactive?
I know: use ‚format ..' instead of write/display ..
But what to do with (read) ??
How to work with user input and output?
Any hints or making the program about working are very welcome-
Best, Wolfgang
----
Dr. Wolfgang Lindner
Leichlingen, Germany
send from my iMac
Dr. Wolfgang Lindner
Leichlingen, Germany
send from my iMac
- read in TeXmacs's Guile, Wolfgang Lindner, 12/12/2022
- Re: read in TeXmacs's Guile, Massimiliano Gubinelli, 12/12/2022
- Re: read in TeXmacs's Guile, Wolfgang Lindner, 12/13/2022
- Re: read in TeXmacs's Guile, Massimiliano Gubinelli, 12/13/2022
- Re: read in TeXmacs's Guile, Wolfgang Lindner, 12/13/2022
- Re: read in TeXmacs's Guile, Massimiliano Gubinelli, 12/12/2022
Archive powered by MHonArc 2.6.24.