chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Re: tcp-read-timeout: procedure or parameter?


From: Alex Sandro Queiroz e Silva
Subject: Re: [Chicken-users] Re: tcp-read-timeout: procedure or parameter?
Date: Tue, 24 Jun 2008 13:46:02 -0300
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

Hallo,

William Xu wrote:

,----[ let ]
| (define tcp-read-timeout 60000)
| | (let ((tcp-read-timeout #f))
|    body)
`----

So what's the extra benifits of using `parameter'?

<body> may call procedures that have a tcp-read-timeout free variable, but due to lexical scope that variable will most certainly not be bound to the one you want. For this you need dynamic scope.

-alex
http://www.ventonegro.org/




reply via email to

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