[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a brief introduction to "closures" for "uneducated" C hackers
yes, it did. but you the grammar prevented you from passing a function out
of its scope. -- Matthias
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-plt-scheme@flux.cs.utah.edu using -f
Date: Wed, 07 Feb 2001 13:13:44 -0600
From: John Clonts <jclonts@mastnet.net>
Reply-To: jclonts@mastnet.net
Organization: hardly
CC: matthias@rice.edu
Content-Type: text/plain; charset=us-ascii
Sender: owner-plt-scheme@fast.cs.utah.edu
Precedence: bulk
Matthias Felleisen wrote:
>
[snip good explanation of lexical closure]
>
> LISP, and for a long time Smalltalk, got this all wrong.
>
> In C, you can't define functions in a lexically nested position. So the
> problem didn't come up.
>
I have a vague recollection that Pascal allowed nested functions-- but I
don't recall how or if it dealt with this. Does anyone here know?
Cheers,
John
--
[:o|]