Skip to content

Instantly share code, notes, and snippets.

@tene
Created May 14, 2009 06:31
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 tene/111529 to your computer and use it in GitHub Desktop.
Save tene/111529 to your computer and use it in GitHub Desktop.
.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
.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