Skip to content

Commit

Permalink
Tweak MAIN handling to not need auto-close.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 28, 2013
1 parent cc3d5c8 commit c508bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NQP/Actions.nqp
Expand Up @@ -77,7 +77,7 @@ class NQP::Actions is HLL::Actions {
:op('if'),
QAST::Var.new( :scope('lexical'), :name('@ARGS') ),
QAST::Op.new(
:op('call'), QAST::BVal.new( :value($*MAIN_SUB) ),
:op('call'), :name('&' ~ $*MAIN_SUB.name),
QAST::Var.new( :scope('lexical'), :name('@ARGS'), :flat(1) )
)
));
Expand Down

0 comments on commit c508bbb

Please sign in to comment.