[Top][All Lists]

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

Re: [Chicken-hackers] [PATCH][5] Fix hanging srfi-18 egg tests due to sc

From: Evan Hanson
Subject: Re: [Chicken-hackers] [PATCH][5] Fix hanging srfi-18 egg tests due to scheduler bug
Date: Mon, 14 Sep 2015 18:50:06 +1200

Hi Peter,

Nice catch.

On 2015-09-13 18:27, Peter Bex wrote:
> Interestingly, because of the way the SRFI-18 egg is coded, it should
> now be possible to pass _any_ type of number as a timeout value!  That
> means you can now do (thread-sleep! 1/16), for example.  If you pass
> in a complex number, you'll just get an error about not being able to
> compare complex numbers.  We could perhaps improve that by changing the
> srfi-18 egg's compute-time-limit procedure to check that it receives a
> real number rather than an arbitrary number.

Cool! That's a nice side effect indeed, and good idea about the egg. The
srfi-18 spec agrees, as well, so I've gone ahead and done that.


reply via email to

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