On Tue, 04 Apr 2017 18:43:14 -0700, alex.jakime...@gmail.com wrote:
> Code:
> (^10).grep: /^ <?{ say $++ }> /
> 
> Result (2015.12,2016.10):
> 0
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 
> Result (2016.11,HEAD(099512b)):
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 
> 
> Bisectable points to
> https://github.com/rakudo/rakudo/commit/7a456ff80183a6e26dc91d811d992112c68ddb6d

A state variable works per closure clone, but we must re-clone the inner blocks 
in a regex to avoid threads stomping on each other's state. So this only 
"worked" previously thanks to a code-gen bug, which I fixed in the referenced 
commit.

Reply via email to