Skip to content

Commit

Permalink
use registered ModuleLoader instead of hardcoding P6::ML
Browse files Browse the repository at this point in the history
When parsing we invoked P6::ML before, and at runtime the registered one.
Now it is consistant and lets us register a custom ML.
  • Loading branch information
FROGGS committed Nov 16, 2013
1 parent 8a00898 commit dc3f0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/World.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class Perl6::World is HLL::World {
method load_module($/, $module_name, %opts, $cur_GLOBALish) {
# Immediate loading.
my $line := HLL::Compiler.lineof($/.orig, $/.from, :cache(1));
my $module := Perl6::ModuleLoader.load_module($module_name, %opts,
my $module := nqp::gethllsym('perl6', 'ModuleLoader').load_module($module_name, %opts,
$cur_GLOBALish, :$line);

# During deserialization, ensure that we get this module loaded.
Expand Down

0 comments on commit dc3f0fb

Please sign in to comment.