Skip to content
Permalink
Browse files

Mark Foreigncode class as Rakudo implementation detail

  • Loading branch information...
lizmat committed Dec 31, 2018
1 parent d248d47 commit 588037f065b7a6afa7f50263e474abc9170af9e7
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/core/ForeignCode.pm6
@@ -1,7 +1,10 @@
# Takes a foreign code object and tries to make it feel somewhat like a Perl
# 6 one. Note that it doesn't have signature information we can know about.

my class ForeignCode does Callable { # declared in BOOTSTRAP
my class ForeignCode
does Callable
does Rakudo::Internals::ImplementationDetail
{ # declared in BOOTSTRAP
# class ForeignCode
# has Code $!do; # Code object we delegate to

@@ -12,10 +15,6 @@ my class ForeignCode does Callable { # declared in BOOTSTRAP
method signature(ForeignCode:D:) { (sub (|) { }).signature }

method name() { (nqp::can($!do, 'name') ?? $!do.name !! nqp::getcodename($!do)) || '<anon>' }

multi method gist(ForeignCode:D:) { self.name }

multi method Str(ForeignCode:D:) { self.name }
}

my class Rakudo::Internals::EvalIdSource {

0 comments on commit 588037f

Please sign in to comment.
You can’t perform that action at this time.