Permalink
Browse files

coerce arglist to import to an RPA

now import Type :DEFAULT; works the same as a bare import Type
  • Loading branch information...
1 parent c95b593 commit 4b16cae46255f6ed77a40e2eb9220c2380b599a1 @moritz moritz committed May 8, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 docs/ChangeLog
  2. +2 −0 src/Perl6/Grammar.pm
View
@@ -19,6 +19,7 @@ New in 2012.05
+ updated calling conventions for traits
+ implemented fff flip-flop operator; improvements to ff form also
+ removed current directory from default library search path
++ 'import' works
New in 2012.04.1
+ autvivification for arrays and hashes
@@ -721,6 +721,8 @@ grammar Perl6::Grammar is HLL::Grammar {
my $arglist;
if $<arglist> {
$arglist := $*W.compile_time_evaluate($/, $<arglist>[0]<EXPR>.ast);
+ $arglist := nqp::getattr($arglist.list.eager,
+ $*W.find_symbol(['List']), '$!items');
}
do_import($module.WHO, ~$<module_name><longname>, $arglist);
}

0 comments on commit 4b16cae

Please sign in to comment.