Last active
August 29, 2015 14:14
-
-
Save cjfields/f899329609b3eee7129d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cjfields@cjfields-imac comp-fail]$ cat Bar.pm6 | |
role Bar { | |
has Str $.my-str handles <lines words> | |
}; | |
[cjfields@cjfields-imac comp-fail]$ cat Foo.pm6 | |
use lib '.'; | |
use Bar; | |
class Foo does Bar { } | |
[cjfields@cjfields-imac comp-fail]$ cat test.pl6 | |
use lib '.'; | |
use Foo; | |
my $io = Foo.new(:my-str('Able was I ere I saw Elba')); | |
say $io.perl; | |
[cjfields@cjfields-imac comp-fail]$ perl6 test.pl6 | |
Foo.new(my-str => "Able was I ere I saw Elba") | |
[cjfields@cjfields-imac comp-fail]$ for i in *.pm6; do perl6 --target=mbc --output=${i}.moarvm $i; done | |
===SORRY!=== | |
Cannot invoke this object (REPR: Null, cs = 0) | |
[cjfields@cjfields-imac comp-fail]$ ll | |
total 72 | |
-rw-r--r-- 1 cjfields staff 58 Jan 26 15:46 Bar.pm6 | |
-rw-r--r-- 1 cjfields staff 22915 Jan 26 15:49 Bar.pm6.moarvm | |
-rw-r--r-- 1 cjfields staff 47 Jan 26 15:47 Foo.pm6 | |
-rw-r--r-- 1 cjfields staff 95 Jan 26 15:44 test.pl6 | |
[cjfields@cjfields-imac comp-fail]$ perl6 test.pl6 | |
===SORRY!=== | |
Cannot invoke this object (REPR: Null, cs = 0) | |
[cjfields@cjfields-imac comp-fail]$ perl6-j test.pl6 | |
Foo.new(my-str => "Able was I ere I saw Elba") | |
[cjfields@cjfields-imac comp-fail]$ for i in *.pm6; do perl6-j --target=jar --output=${i}.jar $i; done | |
===SORRY!=== | |
java.lang.NullPointerException | |
[cjfields@cjfields-imac comp-fail]$ perl6-j test.pl6 | |
===SORRY!=== | |
java.lang.NullPointerException | |
[cjfields@cjfields-imac comp-fail]$ ll | |
total 120 | |
-rw-r--r-- 1 cjfields staff 58 Jan 26 16:04 Bar.pm6 | |
-rw-r--r-- 1 cjfields staff 22153 Jan 26 16:12 Bar.pm6.jar | |
-rw-r--r-- 1 cjfields staff 22915 Jan 26 16:11 Bar.pm6.moarvm | |
-rw-r--r-- 1 cjfields staff 47 Jan 26 15:47 Foo.pm6 | |
-rw-r--r-- 1 cjfields staff 95 Jan 26 15:44 test.pl6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment