Re: I thought this was the one that worked?
- From: Chad Perrin <perrin@xxxxxxxxxxxx>
- Date: Tue, 1 Aug 2006 13:06:27 +0900
On Tue, Aug 01, 2006 at 12:47:50PM +0900, Logan Capaldo wrote:
On Jul 31, 2006, at 11:26 PM, Chad Perrin wrote:
Closure
A "closure" is an expression (typically a function) that can
have
free variables together with an environment that binds those
variables (that "closes" the expression).
In ruby this environment always exists for a block regardless of the
presence of free variables, since the declaration of the variables
that are free in the block can be added after (in time) the creation
of the closure.
I think that depends on what you mean by "creation of the closure" in
this case. Are you talking about the code used to create it, or the
assignment of the return value of the closure's enclosing scope to a
variable?
--
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
"A script is what you give the actors. A program
is what you give the audience." - Larry Wall
.
- Follow-Ups:
- Re: I thought this was the one that worked?
- From: Logan Capaldo
- Re: I thought this was the one that worked?
- References:
- Re: I thought this was the one that worked?
- From: Chad Perrin
- Re: I thought this was the one that worked?
- From: Logan Capaldo
- Re: I thought this was the one that worked?
- From: Chad Perrin
- Re: I thought this was the one that worked?
- From: Jacob Fugal
- Re: I thought this was the one that worked?
- From: Chad Perrin
- Re: I thought this was the one that worked?
- From: Just Another Victim of the Ambient Morality
- Re: I thought this was the one that worked?
- From: Chad Perrin
- Re: I thought this was the one that worked?
- From: Hal Fulton
- Re: I thought this was the one that worked?
- From: Chad Perrin
- Re: I thought this was the one that worked?
- From: Logan Capaldo
- Re: I thought this was the one that worked?
- Prev by Date: Re: I thought this was the one that worked?
- Next by Date: Re: I thought this was the one that worked?
- Previous by thread: Re: I thought this was the one that worked?
- Next by thread: Re: I thought this was the one that worked?
- Index(es):
Relevant Pages
|