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

Set/Bag/KeySet/KeyBag no longer extendable #4399

Closed
p6rt opened this issue Jul 14, 2015 · 6 comments
Closed

Set/Bag/KeySet/KeyBag no longer extendable #4399

p6rt opened this issue Jul 14, 2015 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jul 14, 2015

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

Searchable as RT125611$

@p6rt
Copy link
Author

p6rt commented Jul 14, 2015

From liukan@360.cn

17​:58 < kanl> is Set no longer extendable?
17​:58 < kanl> m​: class Foo is Set { method foo( $foo ) { self{$foo} = True;
  self } }; my $f = Foo.new.foo​: 'a'; $f.say;
17​:58 <+camelia> rakudo-moar 533d1a​: OUTPUT«Method 'BUILD' not found for
  invocant of class 'Foo'â�¤ in block <unit> at
  /tmp/75lUH25_wJ​:1â�¤â�¤Â»
18​:17 < jnthn> kanl​: I think it's a bug that you can't inherit from Set.

@p6rt
Copy link
Author

p6rt commented Jul 14, 2015

From @lizmat

On 14 Jul 2015, at 03​:24, å��å�� (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

17​:58 < kanl> is Set no longer extendable?
17​:58 < kanl> m​: class Foo is Set { method foo( $foo ) { self{$foo} = True;
self } }; my $f = Foo.new.foo​: 'a'; $f.say;
17​:58 <+camelia> rakudo-moar 533d1a​: OUTPUT«Method 'BUILD' not found for
invocant of class 'Foo'� in block <unit> at
/tmp/75lUH25_wJ​:1â�¤â�¤Â»
18​:17 < jnthn> kanl​: I think it's a bug that you can't inherit from Set.

1. Fixed with b6fae27eceb094d5739f9 .

2. I think it should be �is SetHash� if you want to be able to change it after it has been created. It�s another error that the assignment failure is not caught. This was fixed with dd3bcc46ccf1eeb5938131dc .

Closable with tests.

Liz

@p6rt
Copy link
Author

p6rt commented Jul 14, 2015

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

@p6rt
Copy link
Author

p6rt commented Aug 3, 2015

From @usev6

Tests were added with commits f94e52b4, bb2d247c and 235a8c93.

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Aug 3, 2015

From @usev6

Tests were added with commits f94e52b4, bb2d247c and 235a8c93.

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Aug 3, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant