Created
May 14, 2009 06:31
-
-
Save tene/111529 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
.HLL 'lol' | |
# This can be made to work if we put a function in the 'parrot' HLL to load_bytecode from | |
.sub main :main | |
load_bytecode 'wtf.pir' | |
.end |
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
.HLL 'wtf' | |
.loadlib 'perl6_group' | |
.sub demo :load :init | |
# If you change this to ['lol';'Perl6Str'], then it works when load_bytecoded from | |
# lol.pir, but obviously not when run directly. | |
$P0 = get_root_namespace ['parrot';'Perl6Str'] | |
$P0 = new $P0 | |
$P0 = "hi" | |
say $P0 | |
.end | |
.sub main :main | |
'demo'() | |
.end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment