On 1/12/07, minh thu <[EMAIL PROTECTED]> wrote:

(define (poll-for-event)
  (define (poll) ((write "in poll-for-event") ; not shown

That line above has a "(" to much. The arguments become
evaluated, but before the write is executed, the call to "poll"
is. The write is in operator position and might be executed
after the "(poll)".

Just remove the parens around the forms in "poll".


cheers,
felix


                  (newline)      ; shown
                  (flush-output) ; changes nothing
                  (thread-sleep! 1)
                  (poll)))
  (poll))



_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to