Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created November 13, 2009 22:42
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 jnthn/234236 to your computer and use it in GitHub Desktop.
Save jnthn/234236 to your computer and use it in GitHub Desktop.
.sub 'main'
$P0 = get_global 'foo'
set_global 'bar', $P0
'bar'()
.end
.sub 'foo'
say "win"
.end
# If you comment this out, it works.
.sub 'bar' :anon
say "fail"
.end
.sub 'main'
'bar'()
.end
.sub 'bar' :anon
say "fail"
.end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment