[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a brief introduction to "closures" for "uneducated" C hackers
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|]