Skip to content

Instantly share code, notes, and snippets.

@rakudo
Created October 31, 2009 22:06
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 rakudo/223273 to your computer and use it in GitHub Desktop.
Save rakudo/223273 to your computer and use it in GitHub Desktop.
pmichaud@orange:~/ng$ ./perl6 --target=pir
> our $x = 3;
.HLL "perl6"
.namespace []
.sub "_block11" :anon :subid("10_1257026635.18483")
.annotate "line", 1
get_global $P13, "$x"
unless_null $P13, vivify_11
new $P13, "Perl6Scalar"
get_hll_global $P14, ["Bool"], "True"
setprop $P13, "rw", $P14
set_global "$x", $P13
vivify_11:
.lex "$x", $P13
find_lex $P15, "$x"
$P16 = "&infix:<=>"($P15, 3)
.return ($P16)
.end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment