Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support require Foo:from[...]; Foo.new
As with "use", the name given to "require" should be taken as an alias for
whatever is actually located by the from argument.
  • Loading branch information
TimToady committed Dec 16, 2010
1 parent 01ab3ab commit 625303c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions STD.pm6
Expand Up @@ -1700,6 +1700,11 @@ grammar P6 is STD {
<sym> <.ws>
[
|| <module_name> <.ws> <EXPR>?
{
my $*IN_DECL = 'use';
my $*SCOPE = 'use';
.add_name($<module_name><longname><name>.Str);
}
|| <EXPR>
]
}
Expand Down

0 comments on commit 625303c

Please sign in to comment.