Permalink
Browse files

allow ranges to interpolate into argument lists

  • Loading branch information...
1 parent 85d88b3 commit 582c906316776e90aae5ed5eb954c42e43262c92 @moritz moritz committed Jun 23, 2012
Showing with 4 additions and 0 deletions.
  1. +1 −0 docs/ChangeLog
  2. +3 −0 src/core/Range.pm
View
@@ -1,5 +1,6 @@
New in 2012.07
+ Deprecated SAFE.setting in favor of RESTRICTED.setting
++ Ranges can now interpolate in argument lists
New in 2012.06
+ Rakudo is now compiled with the same regex engine as user-space regexes use
View
@@ -38,6 +38,9 @@ class Range is Iterable does Positional {
method iterator() { self }
method list() { self.flat }
+ method FLATTENABLE_LIST() { nqp::getattr(self.flat.eager, List, '$!items') }
+ method FLATTENABLE_HASH() { nqp::hash() }
+
method bounds() { ($!min, $!max) }
multi method ACCEPTS(Range:D: Mu \$topic) {

0 comments on commit 582c906

Please sign in to comment.