Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[common] Fill out NQPHash a bit and...we have basically functioning h…

…ashes.
  • Loading branch information...
commit 88190a82b08d866653c05d02dd1f450f3de3c2e2 1 parent bae7cdf
@jnthn authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 common/NQP/NQPSetting.pm
View
12 common/NQP/NQPSetting.pm
@@ -108,6 +108,18 @@ knowhow NQPHash is repr('P6mapping') {
method new() {
nqp::instance_of(self.WHAT)
}
+ method Numeric() {
+ self.elems
+ }
+ method elems() {
+ nqp::llmapping_elems(self)
+ }
+ method at_key($key) {
+ nqp::llmapping_get_at_key(self, $key.Str)
+ }
+ method bind_key($key, $value) {
+ nqp::llmapping_bind_at_key(self, $key.Str, $value)
+ }
}
# This is a little bit of a cheat. We only really need to keep
Please sign in to comment.
Something went wrong with that request. Please try again.