On Wed, Sep 19, 2007 at 05:09:24PM +0200, Rafael
Garcia-Suarez wrote:
> On 19/09/2007, Nicholas Clark <nick ccl4.org> wrote:
> > Mmm, I think that it's going to be moderately
tricky to implement.
>
> Likewise.
>
> > And I was trying to get all the blead stuff done
to get back to 5.8.9
>
> You know, that can wait for another release. We could
even forbid that
> for now, like state foo = qw(bar). There are
more pressing things.
>
> > Is the list longer than tie, open, sysopen?
>
> Doesn't seem so.
I'm not sure how easy it would be to spot all state
declarations in LVALUE
contexts. Might be quite easy. Curiously, subroutine entry
seems to work
just fine:
$ ./perl -Ilib -wlE 'sub outer {sub up {$_[0]++}; for (1..3)
{up(state $a); print $a;}} outer(); outer();'
1
2
3
4
5
6
Not sure why that's not the same class of operation.
Nicholas Clark
|