Skip to content

Commit

Permalink
install hash() constructor, make t/setting/02-hash.t pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 13, 2011
1 parent bb72006 commit c9dd840
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ CORE_SETTING_SOURCES = \
src/core/NQPCapture.pm \
src/core/IO.pm \
src/core/Regex.pm \
src/core/Hash.pm \
src/core/testing.pm \

CORE_SETTING_NQP = NQPCORE.setting
Expand Down
7 changes: 7 additions & 0 deletions src/core/Hash.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sub hash(*%new) {
my %h;
for %new {
%h{$_} := %new{$_};
}
%h;
}

0 comments on commit c9dd840

Please sign in to comment.