in reply to Re^3: How will you use state declared variables in Perl6?
in thread How will you use state declared variables in Perl6?
Okay. The analogy with C statics was flawed. That makes sense.
I should really have referred to our rather than local, but I think your explaination suffices.
What happens if I do:
sub bar { state $foo; ... my $code = sub qux { state $foo; }; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How will you use state declared variables in Perl6?
by TimToady (Parson) on Jul 08, 2005 at 23:27 UTC |