Skip Menu |
Report information
Id: 126336
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: gfldex <wenzel.peppmeyer [at] gmx.de>
Cc:
AdminCc:

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



To: rakudobug [...] perl6.org
From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...] gmx.de>
Date: Mon, 12 Oct 2015 20:31:55 +0200 (CEST)
Subject: assignment of LoL or LoR in sink context silently drops list elements
Download (untitled) / with headers
text/plain 363b
my $a = [1..3],[4..6]; dd $a; # OUTPUT«Array $a = $[1, 2, 3]␤» my $a = [1,2],[3,4]; dd $a; # OUTPUT«Array $a = $[1, 2]␤» # however the following provides a warning: my $a = 1,2; dd $a; # OUTPUT«WARNINGS:␤Useless use of constant integer 2 in sink context(line 1)␤Int $a = 1␤» # Silently dropping literals is at least LTA and may be design small.


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