Skip to content

Commit

Permalink
%h.hash should not make a new hash, just return identify.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 21, 2012
1 parent 271d219 commit 94ae635
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/EnumMap.pm
Expand Up @@ -96,6 +96,10 @@ my class EnumMap does Associative {
method fmt($format = "%s\t\%s", $sep = "\n") {
self.pairs.fmt($format, $sep);
}

method hash(\$self:) is rw {
$self
}
}

multi sub infix:<eqv>(EnumMap $a, EnumMap $b) {
Expand Down

0 comments on commit 94ae635

Please sign in to comment.