in reply to Re^2: How will you use state declared variables in Perl6?
in thread How will you use state declared variables in Perl6?
And to reiterate, state variables are not globals. They're persistent lexicals. You can temporize them, but then you can temporize my variables as well. You can even temporize attribute accessors and not worry about whether the accessor represents a real attribute or is a wrapper around something else:
temp $handle.autoflush = 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How will you use state declared variables in Perl6?
by BrowserUk (Patriarch) on Jul 08, 2005 at 23:12 UTC | |
by TimToady (Parson) on Jul 08, 2005 at 23:27 UTC |