Where in the synopses (or other documents) does it explain why these two
are different?

$ ./perl6 -e 'sub foo {state @a = (3, 4); say ++@a[0];}; foo; foo;'
4
5
$ ./perl6 -e 'sub foo {(state @a) = (3, 4); say ++@a[0];}; foo; foo;'
4
4

(I'm pretty sure that I remember that they intentionally *are* different,
and I think I can see why it makes sense, but I can't find it written down)

Nicholas Clark

Reply via email to