![]() |
|
"be consistent" | |
PerlMonks |
RE: RE: RE (tilly) 3: Fly Subroutines on the Flyby merlyn (Sage) |
on Sep 19, 2000 at 22:32 UTC ( #33174=note: print w/replies, xml ) | Need Help?? |
You seem to be talking about run-time compilation of new subroutines. While that can be a powerful technique, it is different than closures (to me, at least).Yes... casually, people say "closures" when they mean "anonymous subroutines". But properly speaking, a subroutine (anonymous or not) is not a closure unless it also captures lexical state that can go out of scope. See Closures (was Re: for loops) for an example of detection. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|