On 9/25/12 11:42 AM, Mehrdad wrote:
On Tuesday, 25 September 2012 at 13:34:28 UTC, Andrei Alexandrescu wrote:
On 9/25/12 4:23 AM, Mehrdad wrote:
On Tuesday, 25 September 2012 at 08:21:39 UTC, Mehrdad wrote:
without creating new times
new types**
Ah, better now. Still it would be great to explain it more :o).
Andrei
Haha ok. :) I mean like, essentially, these need to work:
assert(is(typeof(foo.stride(1)) == typeof(foo.stride(2).stride(3))));
assert(is(typeof(foo.drop(1)) == typeof(foo.drop(2).drop(3))));
assert(is(typeof(foo.take(1)) == typeof(foo.take(2).take(3))));
otherwise recursion with these ranges is impossible.
I think all of the above are doable and useful. Please file a bug report
containing these and any others you could reasonably think of.
Thanks!
Andrei