Skip to content
Browse files

POST::PBCCompiler - fix calling init subs

1) Since we're about to call main, we should only use init instead of
init and load.

2) PackfileView.subs_by_flag is now called subs_by_tag
  • Loading branch information...
1 parent 7769a36 commit 9da949db6bf89945cf7e47005746a0a50f4a567e @Benabik Benabik committed
Showing with 601 additions and 606 deletions.
  1. +600 −603 compilers/pct/src/POST/PBCCompiler.pir
  2. +1 −3 compilers/pct/src/POST/PBCCompiler.pm
View
1,203 compilers/pct/src/POST/PBCCompiler.pir
600 additions, 603 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
4 compilers/pct/src/POST/PBCCompiler.pm
@@ -56,13 +56,12 @@ method packfile($post, *%adverbs) {
sub trigger($view, $flag) {
- $_() for $view.subs_by_flag($flag);
+ $_() for $view.subs_by_tag($flag);
}
method mainpmc($packfile, *%adverbs) {
my $view := $packfile.view();
- trigger($view, 'load');
trigger($view, 'init');
$view.main_sub();
@@ -96,7 +95,6 @@ method pbc($packfile, *%adverbs) {
unlink($filename) if $unlink;
- trigger($view, 'load');
trigger($view, 'init');
$view.main_sub();

0 comments on commit 9da949d

Please sign in to comment.
Something went wrong with that request. Please try again.