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; }; ... }
In reply to Re^4: How will you use state declared variables in Perl6?
by BrowserUk
in thread How will you use state declared variables in Perl6?
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |