Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Switch Pair.hash so that it doesn't return a scalar Hash; let it default
back to Any.hash instead (which now works).
  • Loading branch information
pmichaud committed Jul 1, 2011
1 parent af3879f commit 0feaed3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/core/Any.pm
Expand Up @@ -11,6 +11,7 @@ my class Any {
method elems() { self.list.elems }
method infinite() { Mu }
method flat() { nqp::p6list(nqp::list(self), List, 1.Bool) }
method hash() { my %h = self }
method list() { nqp::p6list(nqp::list(self), List, Mu) }
method reverse() { self.list.reverse }

Expand Down
3 changes: 0 additions & 3 deletions src/core/Pair.pm
@@ -1,8 +1,5 @@
my class Pair is Enum does Associative {
# method value() is rw { ... }
method hash {
{ self.key => self.value }
}
}

sub infix=>»($key, Mu $value) {
Expand Down

0 comments on commit 0feaed3

Please sign in to comment.