Steffen Mueller:
> So any code that uses closures is pathological?
Hmm, let's see:
perl -MO=Deparse -e 'my $x; {my $foo = "Hello!"; $x=sub{print $foo};}; $x->()'
my $x;
{
my $foo = 'Hello!';
$x = sub {
print $foo;
}
;
}
&$x();
Nope, seems not.
--
<Citizen_X> I detest people who get in their cars before turning off the
alarm, fiddle around a bit, and then turn it off
<Citizen_X> maybe they're afraid someone might steal the car in the short time
before they turn off the alarm and actually get in
<Citizen_X> it's a race condition, you know