Skip to content

Commit

Permalink
update comment on Mu in Map's storage
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Aug 10, 2018
1 parent ec7de84 commit 8d8c755
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -741,8 +741,9 @@ my class Binder {
elsif $flags +& $SIG_ELEM_SLURPY_NAMED {
# We'll either take the current named arguments copy hash which
# will by definition contain all unbound named arguments and use
# that. Otherwise, putting Mu in there is fine; Hash is smart
# enough to know what to do.
# that. If there are none, just keep the storage uninitialized
# and rely on autovivification to build up an empty nqp::hash
# whenever needed.
my $hash := nqp::create(Hash);
nqp::bindattr($hash, Map, '$!storage', $named_args) if $named_args;
$bind_fail := bind_one_param($lexpad, $sig, $param, $no_nom_type_check, $error,
Expand Down

0 comments on commit 8d8c755

Please sign in to comment.