[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Re: tcp-read-timeout: procedure or parameter?
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Re: tcp-read-timeout: procedure or parameter? |
Date: |
Wed, 9 Jul 2008 12:25:48 +0200 |
On Mon, Jul 7, 2008 at 10:18 AM, Tobia Conforto <address@hidden> wrote:
>
> Contrary to global variables, parameters are thread-local, so every thread
> has its own set of parameter values.
>
> The combination of these two features makes parameters very useful.
>
Another nice property of parameters is that you can pass them
around by value, sort of like a "location":
(define (change-setting p)
(p <new value>) ...)
...
(if (stars-are-right?)
(change-setting first-parameter)
(change-setting second-parameter) )
cheers,
felix