Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignment of LoL or LoR in sink context silently drops list elements #4642

Open
p6rt opened this issue Oct 12, 2015 · 2 comments
Open

assignment of LoL or LoR in sink context silently drops list elements #4642

p6rt opened this issue Oct 12, 2015 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 12, 2015

Migrated from rt.perl.org#126336 (status was 'open')

Searchable as RT126336$

@p6rt
Copy link
Author

p6rt commented Oct 12, 2015

From @gfldex

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.

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

@coke - Status changed from 'new' to 'open'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant