Skip to content

Instantly share code, notes, and snippets.

@mlschroe
Created November 10, 2011 18:03
Show Gist options
  • Save mlschroe/1355595 to your computer and use it in GitHub Desktop.
Save mlschroe/1355595 to your computer and use it in GitHub Desktop.
.sub "main" :main
"bar"(0)
.end
.sub "bar" :main
.param int run
.lex "a", $S0
$S0 = "hello"
if run goto done
"bar"(1)
$S0 = "world"
done:
$S1 = find_lex "a"
say $S1
.const "Sub" $P0 = "foo"
# result is wrong both with and without clone
$P0 = clone $P0
$P0()
.end
.sub "foo" :outer("bar")
$S0 = find_lex "a"
say $S0
.end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment