Permalink
Browse files

Oops, was ignoring $!exclude_max by mistake in the new RangeIter (mor…

…itz++)
  • Loading branch information...
1 parent 6caf918 commit 8e5c9f51e6cf7b2950d124c5fa938a2de9660a69 @sorear committed Jun 1, 2011
Showing with 4 additions and 6 deletions.
  1. +3 −5 TODO
  2. +1 −1 lib/CORE.setting
View
8 TODO
@@ -12,7 +12,7 @@ EASY
Add your favorite missing function to the setting, with tests.
In particular, I could use: sprintf, dir, write, close, split, ...
- Add $*ARGFILES, %*ENV, your favorite other *-var.
+ Add %*ENV, your favorite other *-var.
Implement Sub.leave and CallFrame.leave
@@ -23,7 +23,7 @@ EASY
Fudge and run your favorite spectest file.
Stuff spectests are blocking on: "Block", "closure for",
- "ranges of chars", "gather for", constants in signatures, ::T, ...
+ "gather for", constants in signatures, ::T, ...
MEDIUM
@@ -48,16 +48,14 @@ MEDIUM
Jump table optimization for when chains.
- Find out what readonly subs are supposed to do with lists, etc and implement
+ *Find out what readonly subs are supposed to do with lists, etc and implement
that. Also add return-rw, take-rw, and the is rw trait for subs and attrs.
*Implement BUILD submethod calling.
Methods with variable names need to call the correct action method. (See
the horrible hack in NieczaActions.FALLBACK).
- *Implement -p and -n.
-
Add :rotate - depends on sized numbers.
Add Buf bitops.
View
@@ -1129,7 +1129,7 @@ my class RangeIter is IterCursor {
my $cmp = $c cmp $!limit;
($cmp < 0) ?? ($c, RangeIter.new(current => $c.succ,
limit => $!limit, exclusive => $!exclusive)) !!
- ($cmp > 0) ?? Nil !!
+ ($cmp > 0 || $!exclusive) ?? Nil !!
($c,);
}
}

0 comments on commit 8e5c9f5

Please sign in to comment.