Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add comment why we didn't optimize Hash.BIND-KEY
  • Loading branch information
lizmat committed Feb 10, 2016
1 parent a68d91c commit 0b3beb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Hash.pm
Expand Up @@ -61,6 +61,8 @@ my class Hash { # declared in BOOTSTRAP
nqp::p6scalarfromdesc($!descriptor) = assignval)
}

# for some reason, this can't be turned into a multi without
# making setting compilation get very confused indeed
method BIND-KEY(Hash:D: \key, Mu \bindval) is raw {
nqp::bindattr(self,Map,'$!storage',nqp::hash)
unless nqp::defined(nqp::getattr(self,Map,'$!storage'));
Expand Down

0 comments on commit 0b3beb6

Please sign in to comment.