[perl #131956] Zen/Whatever slice ignore :v

2017-08-24 Thread Sam S. via RT
I'm surprised that zen slices accept adverbs at all.

Isn't the whole point of a zen slice to return the invocant object directly, 
without looking at its elements or constructing a slice from them?

I would probably make it print an error along the lines of:

===SORRY!===
Adverbs don't make sense on a zen slice.
To get a slice of all elements, use the Whatever-star: %foo[*]:v
--> say %foo[]⏏:v

(As the title of the ticket says, Whatever-slices *also* ignore :v, so that 
should be fixed of course.)


[perl #131375] [BUG] error initializing large array on Windows (64-bit)

2017-08-24 Thread Nick Logan via RT
Largest I can initialize is 16777216.

https://stackoverflow.com/questions/12596695/why-does-a-float-variable-stop-incrementing-at-16777216-in-c


[perl #131956] Zen/Whatever slice ignore :v

2017-08-24 Thread via RT
# New Ticket Created by  Elizabeth Mattijsen 
# Please include the string:  [perl #131956]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=131956 >


$ 6 'my @a = ^5; @a[10]=42; .say for @a[]:v'
0
1
2
3
4
(Any)
(Any)
(Any)
(Any)
(Any)
42


Note that :k *does* honour the filtering logic:

$ 6 'my @a = ^5; @a[10]=42; .say for @a[]:k'
0
1
2
3
4
10