chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] writing from a thread issue


From: felix winkelmann
Subject: Re: [Chicken-users] writing from a thread issue
Date: Fri, 12 Jan 2007 12:44:02 +0100

On 1/12/07, minh thu <address@hidden> 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))





reply via email to

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