On 09/14/2017 09:10 AM, Timo Paulssen wrote:
You're reaching deep into rakudo's internals here, reaching an object
that doesn't know about pretty much any methods you might want to have,
and there's also no support for them in things like the ~~ operator, for
example.
You're getting the
You're reaching deep into rakudo's internals here, reaching an object
that doesn't know about pretty much any methods you might want to have,
and there's also no support for them in things like the ~~ operator, for
example.
You're getting the error because you're calling ~~ with the NQPRoutine
#!/usr/bin/env perl6
# Reference: https://docs.perl6.org/type/CallFrame
for 1..* -> $level {
given callframe($level) -> $frame {
when $frame ~~ CallFrame {
next unless $frame.code ~~ Routine;
say $frame.code.package;
last;
}