Created
May 11, 2016 22:37
-
-
Save zoffixznet/3c85f6cff44e7717fa5ee26bcb1c727c 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
zoffix@zoffix-VirtualBox:/tmp/tmp.N8R7kzFURS$ cat foo.p6 | |
use NativeCall; | |
sub open-tray(Str $x?) is native('cdio', v13) | |
is symbol('cdio_eject_media_drive') {}; | |
sub close-tray(Str $x?, int32 $y = 0) is native('cdio', v13) | |
is symbol('cdio_close_tray') {}; | |
say "Gimme a CD!"; | |
open-tray; | |
sleep .5; | |
say "Ha! Too slow!"; | |
close-tray; | |
zoffix@zoffix-VirtualBox:/tmp/tmp.N8R7kzFURS$ perl6 --ll-exception foo.p6 | |
Gimme a CD! | |
++ WARN: Problems resolving device rootfs: No such file or directory | |
++ WARN: Problems resolving device sysfs: No such file or directory | |
++ WARN: Problems resolving device proc: No such file or directory | |
++ WARN: Problems resolving device udev: No such file or directory | |
++ WARN: Problems resolving device devpts: No such file or directory | |
++ WARN: Problems resolving device tmpfs: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device binfmt_misc: No such file or directory | |
++ WARN: Problems resolving device systemd: No such file or directory | |
++ WARN: Problems resolving device none: No such file or directory | |
++ WARN: Problems resolving device gvfsd-fuse: No such file or directory | |
Ha! Too slow! | |
Cannot unbox a type object | |
at perl#sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall):302 (/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/precomp/6A46499AEDB0E25FA1CD3F2CFF6522453F820D37.1462721089.43735/24/24DD121B5B4774C04A7084827BFAD92199756E03:CALL-ME) | |
from gen/moar/m-BOOTSTRAP.nqp:2841 (/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/BOOTSTRAP.moarvm:) | |
from foo.p6:14 (<ephemeral file>:<unit>) | |
from foo.p6:1 (<ephemeral file>:<unit-outer>) | |
from gen/moar/stage2/NQPHLL.nqp:1505 (/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:eval) | |
from src/Perl6/Compiler.nqp:161 (/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Compiler.moarvm:eval) | |
from gen/moar/stage2/NQPHLL.nqp:1708 (/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:evalfiles) | |
from gen/moar/stage2/NQPHLL.nqp:1602 (/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_eval) | |
from src/Perl6/Compiler.nqp:29 (/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Compiler.moarvm:command_eval) | |
from gen/moar/stage2/NQPHLL.nqp:1576 (/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_line) | |
from gen/moar/m-main.nqp:37 (/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:MAIN) | |
from gen/moar/m-main.nqp:33 (/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<mainline>) | |
from <unknown>:1 (/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<main>) | |
from <unknown>:1 (/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<entry>) | |
zoffix@zoffix-VirtualBox:/tmp/tmp.N8R7kzFURS$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment