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

SetHash retains container rather than object #6214

Closed
p6rt opened this issue May 1, 2017 · 5 comments
Closed

SetHash retains container rather than object #6214

p6rt opened this issue May 1, 2017 · 5 comments
Labels

Comments

@p6rt
Copy link

@p6rt p6rt commented May 1, 2017

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

Searchable as RT131240$

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2017

From @dogbert17

# these examples demonstrate the problem

dogbert@​dogbert-VirtualBox ~ $ perl6 -v
This is Rakudo version 2017.04.3-134-g69320e7fa built on MoarVM version 2017.04-44-gf0db8822 implementing Perl 6.c.

# the problem
dogbert@​dogbert-VirtualBox ~ $ perl6 -e 'my SetHash $set = SetHash.new; my $i = 1001; $set{$i} = True; dd $set; $i++; dd $set'
SetHash $set = SetHash.new(1001)
SetHash $set = SetHash.new(1002)

# compare with an older version
dogbert@​dogbert-VirtualBox ~ $ perl6 -v
This is Rakudo version 2016.12 built on MoarVM version 2016.12 implementing Perl 6.c.

dogbert@​dogbert-VirtualBox ~ $ perl6 -e 'my SetHash $set = SetHash.new; my $i = 1001; $set{$i} = True; dd $set; $i++; dd $set'
SetHash $set = SetHash.new(1001)
SetHash $set = SetHash.new(1001)

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2017

From @lizmat

Fixed with 551b8a69e0a83e2c34 , tests needed

On 1 May 2017, at 13​:24, Jan-Olof Hendig (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Jan-Olof Hendig
# Please include the string​: [perl #​131240]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=131240 >

# these examples demonstrate the problem

dogbert@​dogbert-VirtualBox ~ $ perl6 -v
This is Rakudo version 2017.04.3-134-g69320e7fa built on MoarVM version 2017.04-44-gf0db8822 implementing Perl 6.c.

# the problem
dogbert@​dogbert-VirtualBox ~ $ perl6 -e 'my SetHash $set = SetHash.new; my $i = 1001; $set{$i} = True; dd $set; $i++; dd $set'
SetHash $set = SetHash.new(1001)
SetHash $set = SetHash.new(1002)

# compare with an older version
dogbert@​dogbert-VirtualBox ~ $ perl6 -v
This is Rakudo version 2016.12 built on MoarVM version 2016.12 implementing Perl 6.c.

dogbert@​dogbert-VirtualBox ~ $ perl6 -e 'my SetHash $set = SetHash.new; my $i = 1001; $set{$i} = True; dd $set; $i++; dd $set'
SetHash $set = SetHash.new(1001)
SetHash $set = SetHash.new(1001)

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2017

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

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2017

From @dogbert17

On Mon, 01 May 2017 04​:37​:13 -0700, elizabeth wrote​:

Fixed with 551b8a69e0a83e2c34 , tests needed

On 1 May 2017, at 13​:24, Jan-Olof Hendig (via RT) <perl6-bugs-
followup@​perl.org> wrote​:

# New Ticket Created by Jan-Olof Hendig
# Please include the string​: [perl #​131240]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=131240 >

# these examples demonstrate the problem

dogbert@​dogbert-VirtualBox ~ $ perl6 -v
This is Rakudo version 2017.04.3-134-g69320e7fa built on MoarVM
version 2017.04-44-gf0db8822 implementing Perl 6.c.

# the problem
dogbert@​dogbert-VirtualBox ~ $ perl6 -e 'my SetHash $set =
SetHash.new; my $i = 1001; $set{$i} = True; dd $set; $i++; dd $set'
SetHash $set = SetHash.new(1001)
SetHash $set = SetHash.new(1002)

# compare with an older version
dogbert@​dogbert-VirtualBox ~ $ perl6 -v
This is Rakudo version 2016.12 built on MoarVM version 2016.12
implementing Perl 6.c.

dogbert@​dogbert-VirtualBox ~ $ perl6 -e 'my SetHash $set =
SetHash.new; my $i = 1001; $set{$i} = True; dd $set; $i++; dd $set'
SetHash $set = SetHash.new(1001)
SetHash $set = SetHash.new(1001)

Test added with Raku/roast@8d17fbd

Loading

@p6rt p6rt closed this May 1, 2017
@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2017

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

Loading

@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant