I'm fairly sure that the ship for this has sailed, we've had this “issue” for a
year now.

I guess during that year everyone has adapted their code to the new behavior.

So if you're reading this comment and you think that the ticket should be
closed, please just mark it as 「testneeded」 so that we have the new behavior
cast in stone. And that'll be it.

On 2017-08-06 08:32:55, joshu...@gmail.com wrote:
> An array of tokens used to be able to match like this:
>
> my token foo { 'foo' };
> my token bar { 'bar' };
> my token baz { 'baz' };
> my @tokens = /<foo>/, /<bar>/, /<baz>/;
> say 'foo bar baz' ~~ / ^ <{ @tokens[$++] }> ** { +@tokens } % <.ws> $ /;
>
> OUTPUT: 「foo bar baz」
>
> This no longer work since commit 7a456ff80183a6e26dc91d811d992112c68ddb6d
>
> You can simulate how it should work by providing your own state variable
>
> state $i = 0;
> say 'foo bar baz' ~~ / ^ <{ @tokens[$i++] }> ** { +@tokens } % <.ws> $ /;

Reply via email to