chicken-users
[Top][All Lists]
Advanced

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

Re: [ANN] CHICKEN 5.4.0 release candidate available


From: felix . winkelmann
Subject: Re: [ANN] CHICKEN 5.4.0 release candidate available
Date: Sun, 02 Jun 2024 12:51:44 +0200

> The documentation of (chicken file posix) module about procedure
> 'file-select'  says: "If the optional argument TIMEOUT is given and not
> false, then it should specify the number of seconds after which the wait is
> to be aborted (the value may be a floating point number)."
> but type signature even in 5.4.0rc1 is
> "file-select ((or (list-of fixnum) fixnum false) (or (list-of fixnum)
> fixnum false) #!optional fixnum) * *))"
> ... so TIMEOUT is fixnum so user can not use rational of inexact value for
> milliseconds precision.
>  (In POSIX select TIMEOUT type is  timeval struct {tv_sec, tv_usec})
> May be is right time to correct documentation,... or file-select / type
> source code (way way preferable)

You are correct: the signature in types.db is wrong, it should be "number".
(This was wrong for quite a while - we recently updated the docs, but did
not fix the entry in types.db). I will submit a patch, thanks!


felix




reply via email to

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