Skip to content

Instantly share code, notes, and snippets.

@retupmoca

retupmoca/Bar.pm Secret

Created September 6, 2014 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retupmoca/6def9837388382a054b9 to your computer and use it in GitHub Desktop.
Save retupmoca/6def9837388382a054b9 to your computer and use it in GitHub Desktop.
Moarvm precomp
class X::Bar is Exception { };
class X::Foo is Exception { }
$ perl6 -I. -e 'use Foo; use Bar; X::Foo'
$ perl6 --output=Foo.pm.moarvm --target=mbc Foo.pm
$ perl6 --output=Bar.pm.moarvm --target=mbc Bar.pm
$ perl6 -I. -e 'use Foo; use Bar; X::Foo'
Could not find symbol '&Foo'
in method <anon> at src/gen/m-CORE.setting:13357
in any find_method_fallback at src/gen/m-Metamodel.nqp:2632
in any find_method at src/gen/m-Metamodel.nqp:946
in block <unit> at -e:1
$ perl6 -I. -e 'use Bar; use Foo; X::Foo'
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment