Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: a9f9c60e33f715895323db1465ba4da26d30730d
https://github.com/perl6/specs/commit/a9f9c60e33f715895323db1465ba4da26d30730d
Author: Larry Wall
Date: 2012-09-11 (Tue, 11 Sep 2012)
Changed paths:
M S17-con
On Tue, Sep 11, 2012 at 11:11:11PM +0200, Carl Mäsak wrote:
> Nicholas (>):
> > 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) =
Nicholas (>):
> 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
S03:4912. "Each declarator can t
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*