Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'nom' into newio
  • Loading branch information
lizmat committed Nov 21, 2014
2 parents 0459930 + 96b9a86 commit e90a169
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docs/ChangeLog
@@ -1,3 +1,6 @@
New in 2014.12
+ Increase/Decrease removed, were deprecated 1+ year

New in 2014.11
+ using a constant negative subscript now dies at compile time
+ better wording for runtime negative index failure
Expand Down
12 changes: 12 additions & 0 deletions src/Perl6/Actions.nqp
Expand Up @@ -4475,6 +4475,18 @@ class Perl6::Actions is HLL::Actions does STDActions {
# it's a sigilless param or variable
$past := make_variable_from_parts($/, @name, '', '', @name[0]);
}
elsif +@name && @name[0] eq 'EXPORT' {
my int $i := 1;
my int $m := +@name;
$past := QAST::Var.new( :name<EXPORT>, :scope<lexical> );
while $i < $m {
$past := QAST::Op.new( :op<callmethod>, :name<package_at_key>,
QAST::Op.new( :op<who>, $past ),
QAST::SVal.new(:value(@name[$i]))
);
$i := $i + 1
}
}
else {
$past := instantiated_type(@name, $/);
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/CompUnit.pm
Expand Up @@ -37,7 +37,7 @@ class CompUnit {
return Nil unless $has-source or $has-precomp;

$global.protect( { %instances{$path} //= self.bless(
:path($path.path),
:path(IO::Path.new-from-absolute-path($path)),
:lock(Lock.new),
:$name,
:$extension,
Expand Down
3 changes: 0 additions & 3 deletions src/core/Order.pm
@@ -1,9 +1,6 @@
## Order enumeration, for cmp and <=>
my enum Order (:Less(-1), :Same(0), :More(1));

only Increase () { DEPRECATED("Less", |<2013.11 2014.11>); Less }
only Decrease (){ DEPRECATED("More", |<2013.11 2014.11>); More }

sub ORDER(int $i) {
$i == 0 ?? Same !! $i < 0 ?? Less !! More
}
Expand Down
2 changes: 1 addition & 1 deletion tools/build/NQP_REVISION
@@ -1 +1 @@
2014.11
2014.11-2-gc885c04

0 comments on commit e90a169

Please sign in to comment.