[Chicago-talk] The "other" closure

Randal L. Schwartz merlyn at stonehenge.com
Wed Dec 3 13:05:11 CST 2003

>>>>> "Steven" == Steven Lembark <lembark at wrkhors.com> writes:

>> Voila! A closure.

Steven> This is a really nice example of a private static
Steven> variable, but it is not a closure.

Wrong.  It's a closure.  It's a coderef that latches on to its
lexical referents, even when they go out of scope.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the Chicago-talk mailing list