Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add forgotten change for previous commit.
  • Loading branch information
arnsholt committed Jun 3, 2015
1 parent d8f82f8 commit 2a05e1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Snake/Metamodel/ClassHOW.nqp
Expand Up @@ -23,6 +23,13 @@ my %cheat_methods := nqp::hash(
method new_type(:$name, :@mro) {
my $type := nqp::newtype(self.new(:$name), 'HashAttrStore');

# Not strictily necessary to clone here, since the passed-in list isn't
# used further by calling code ATM, but if that changes down the line
# we're safer this way. If this path turns out to be a bottle-neck, we can
# reconsider.
@mro := nqp::clone(@mro);
nqp::push(@mro, $type);

nqp::setinvokespec($type, nqp::null(), nqp::null_s(), &invocation);
nqp::setmethcache($type, %cheat_methods);
nqp::setmethcacheauth($type, 1);
Expand Down

0 comments on commit 2a05e1b

Please sign in to comment.