Is this the prefered way to use the return values of file-read?
(let-values (((data bytes)) (apply values (file-read fileno size)))
It looks a bit wired. Why does file-read not return values directly if
the language supports them?
___
Chicken-users
On Sep 19, 2011, at 9:59 AM, Sascha Ziemann wrote:
Is this the prefered way to use the return values of file-read?
(let-values (((data bytes)) (apply values (file-read fileno size)))
No, just destructure the returned list:
(let* ((rc (file-read fileno size))
(data (car rc))