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

%h{Any} doesn't behave as expected #4697

Closed
p6rt opened this issue Oct 31, 2015 · 4 comments
Closed

%h{Any} doesn't behave as expected #4697

p6rt opened this issue Oct 31, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 31, 2015

Migrated from rt.perl.org#126507 (status was 'resolved')

Searchable as RT126507$

@p6rt
Copy link
Author

p6rt commented Oct 31, 2015

From zengargoyle@gmail.com

Tests at​:
https://gist.github.com/zengargoyle/5ba20a3c5799327b44d0

my %h{Any};
my $i = (1,2,3);
%h{$i} = 'foo';
%h{$i}​:exists # (False, False, False)
%h.EXISTS-KEY($i) # True

:exists causes $I to slice.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

From @jnthn

On Fri Oct 30 19​:08​:56 2015, zengargoyle@​gmail.com wrote​:

Tests at​:
https://gist.github.com/zengargoyle/5ba20a3c5799327b44d0

my %h{Any};
my $i = (1,2,3);
%h{$i} = 'foo';
%h{$i}​:exists # (False, False, False)
%h.EXISTS-KEY($i) # True

:exists causes $I to slice.

Turns out other adverbs were broken in this way, and array access too. So, fixed up the bunch, and added some tests in S32-array/adverbs.t and S32-hash/adverbs.t.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 12, 2015
@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