Skip Menu |
Report information
Id: 130503
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Hyper method call of AT-KEY/AT-POS fails with empty arrays (my @x; say @x»[0])
Download (untitled) / with headers
text/plain 606b
Code: my @x; say @x»[0] Result: This type (Scalar) does not support elems in block <unit> at -e line 1 I think it should work (and should do nothing, as there are no elements in the array). Here is an interesting thing. If you take, say, 2016.05 and try this: Code: my @x; dd @x; say @x»[0] Result (2016.05): Array @x = [] () It works! But if you remove dd: Code: my @x; say @x»[0] Result: This type (Scalar) does not support elems in block <unit> at /tmp/DPLGku74eh line 1 So it worked with dd, but didn't work without it. Weird. Anyway, this detail is probably not relevant anymore.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org