> 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