On 12 Dec 2022, at 15:11, Wolfgang Lindner <address@hidden> wrote: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
Archive powered by MHonArc 2.6.24.