On Thu, Jul 7, 2016 at 10:06 AM, Mark Hinds <[email protected]> wrote:

> Question - Perl's anonymous functions seem to operate perfectly well
> as closures - they capture the referenced environment properly and
> free it when they themselves are no longer referenced. The guile
> folks disputed that me those many years ago. Thoughts?
>

 Hard to know what to say without knowing what they were arguing.

They don't in fact capture the environment; they capture specific
lexicals.  This makes a difference if a lexical is only used in the closure
in a string eval.
_____________________________________________________________
Seattle Perl Users Group Mailing List
     POST TO: [email protected]
SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
    MEETINGS: 3rd Tuesdays
    WEB PAGE: http://seattleperl.org/

Reply via email to