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 <[email protected]> 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/chicken-hackers _______________________________________________ Chicken-hackers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-hackers
