[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] tcp-read-timeout: procedure or parameter?
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] tcp-read-timeout: procedure or parameter? |
Date: |
Tue, 24 Jun 2008 09:35:02 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Tue, Jun 24, 2008 at 08:26:00AM +0200, felix winkelmann wrote:
> A parameter is a special kind of procedure. You access it like this:
>
> (tcp-read-timeout) -> <timeout-value>
> (tcp-read-timeout <new-value>)
Chicken has an implementation of SRFI-39: Parameter Objects of which
you can find docs at http://srfi.schemers.org/srfi-39/srfi-39.html
tcp-read-timeout is a parameter. This also means you can do something
like have temporary timeout values for the duration of a procedure call
using:
(parameterize ((tcp-read-timeout #f)) (do-something))
I hope this clears things up a bit.
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
pgpraOMSUCDJR.pgp
Description: PGP signature
[Chicken-users] Re: tcp-read-timeout: procedure or parameter?, William Xu, 2008/06/24