Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Re(5): Toggling between two values

by jdporter (Canon)
on May 06, 2003 at 12:46 UTC ( #255863=note: print w/ replies, xml ) Need Help??

in reply to Re(5): Toggling between two values
in thread Toggling between two values

Would you say that &bar is a closure?
Yes, it is, according to the standard definition.

OTOH, there needs to be a term for "subroutine which is created at run time via the sub operator and thus may have bindings to lexicals which outlive the names of those lexicals"...

The 6th Rule of Perl Club is -- There is no Rule #6.

Comment on Re: Re(5): Toggling between two values
Select or Download Code
Replies are listed 'Best First'.
Re(7): Toggling between two values
by chip (Curate) on May 07, 2003 at 21:08 UTC
    Hm. I'd call them "non-trivial closures" or, if I were to use a term from the Perl internals, "cloning closures".

    And, BTW: "Sorry about that, merlyn."

        -- Chip Salzenberg, Free-Floating Agent of Chaos

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://255863]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-11-26 06:21 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls