[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Ensure sleep seconds is a fixnum on Window
From: |
Jim Ursetto |
Subject: |
Re: [Chicken-hackers] [PATCH] Ensure sleep seconds is a fixnum on Windows; also, don't halve sleep time |
Date: |
Tue, 19 Feb 2013 09:45:23 -0600 |
No, it returns 0 to indicate that zero seconds of sleep time remain (it was not
interrupted), just like posix sleep. See the UNIX code, the Windows code prior
to the regression, sleep(3), and the chicken docs.
Jim
On Feb 19, 2013, at 4:34, Peter Bex <address@hidden> wrote:
> On Tue, Feb 19, 2013 at 02:03:44AM -0600, Jim Ursetto wrote:
>> sleep accepts any type arg but should accept only fixnums; also fix a
>> regression in be44f5328.
>
> Shouldn't it return undefined rather than 0? This seems like a bug in
> the original implementation.
>
> Cheers,
> Peter
> --
> http://www.more-magic.net
>
> _______________________________________________
> Chicken-hackers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-hackers