[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] csi running inside emacs and srfi-18

From: Ian Oversby
Subject: [Chicken-users] csi running inside emacs and srfi-18
Date: Mon, 18 Sep 2006 16:12:00 +0000


I'm getting some surprising behaviour using csi under emacs with srfi-18.
I have the following code:

(require-extension srfi-18)

(let ((thread-1 (make-thread (lambda ()
                              (let loop ((x 1))
                                (when (<= x 20)
                                  (thread-sleep! 1)
                                  (print x)
                                  (loop (+ x 1))))))))
 (thread-start! thread-1)
 (thread-join! thread-1 10 'finished))

(print "Hello World")

Either compiling the code or using csi from a dos-shell works as expected.
However, under emacs it displays finished immediately on evaluating the
let expression.  Evaluating the print statement convinces the thread to
display one of the values as well as "Hello World".  Does anyone have an
idea how to persuade either csi or emacs to display the values as it does
outside of emacs?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]