On Tue, 13 Dec 2016 11:10:38 -0800, [email protected] wrote:
> Sooo… Are you saying that the behavior in provided examples is consistent?
> 

As far as I can see, yes. The first two are lazy Ranges. The second two are 
non-lazy WhateverCodes. And as jnthn++ pointed out "The array subscripter 
decides whether to auto-viv for not based on .is-lazy".

The reason it does so is so things like `my @a; @a[3..5] = 1 xx *; say @a` 
autovivicate, while still letting you do stuff like `@a[2..*]` to get a 
truncated result.

In the example you point out as problematic, you're exploiting the 
autovivication feature to create an infinite loop, hence the hang.

Is there still an issue on this ticket not covered by those explanations?

Reply via email to