Skip to content

Commit

Permalink
Give R:I:IterationSet a .raku method for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Dec 16, 2020
1 parent 04a5001 commit 0d301fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core.c/core_prologue.pm6
Expand Up @@ -64,7 +64,11 @@ my constant IterationEnd = nqp::create(Mu);

# To allow passing of nqp::hash without being HLLized, we create a HLL class
# with the same low level REPR as nqp::hash.
my class Rakudo::Internals::IterationSet is repr('VMHash') { }
my class Rakudo::Internals::IterationSet is repr('VMHash') {
method raku() {
nqp::p6bindattrinvres(nqp::create(Map),Map,'$!storage',self)
}
}

# The value for \n.
my constant $?NL = "\x0A";
Expand Down

0 comments on commit 0d301fa

Please sign in to comment.