Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restore old semantics of HLL::Compiler.compile()
Returning the main sub would have worked, but is conceptionally wrong
For now, just add a note about the proper solution
  • Loading branch information
gerdr committed Feb 18, 2013
1 parent 7fef0cc commit 6840a47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/HLL/Compiler.pm
Expand Up @@ -448,7 +448,12 @@ class HLL::Compiler {
for $source.subs_by_tag('init') -> $sub { $sub() }
$source.mark_initialized('init');
}
$source.main_sub()

# FIXME: should use a custom tag
# changes to code generator still pending
#
# $source.first_sub_by_tag('mainline')
$source.first_sub()
}

method dumper($obj, $name, *%options) {
Expand Down

0 comments on commit 6840a47

Please sign in to comment.