https://issues.dlang.org/show_bug.cgi?id=8882
--- Comment #10 from ZombineDev ---
(In reply to RazvanN from comment #9)
> (In reply to ZombineDev from comment #8)
> > While, the OP code compiles, zip is not yet nothrow. See:
> >
> > ```
> > import std.algorithm: map, filter;
> > import std.range
https://issues.dlang.org/show_bug.cgi?id=8882
RazvanN changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=8882
ZombineDev changed:
What|Removed |Added
Status|RESOLVED|REOPENED
CC|
https://issues.dlang.org/show_bug.cgi?id=8882
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://d.puremagic.com/issues/show_bug.cgi?id=8882
--- Comment #5 from bearophile_h...@eml.cc 2014-01-16 13:50:42 PST ---
(In reply to comment #4)
> Bah, I think illegal input should Error. Problem solved.
Changing an exception -> error changes the API of iota(), but in this case I
think ther
https://d.puremagic.com/issues/show_bug.cgi?id=8882
--- Comment #6 from monarchdo...@gmail.com 2014-01-16 13:53:55 PST ---
(In reply to comment #5)
> (In reply to comment #4)
>
> > Bah, I think illegal input should Error. Problem solved.
>
> Changing an exception -> error changes the API of io
https://d.puremagic.com/issues/show_bug.cgi?id=8882
monarchdo...@gmail.com changed:
What|Removed |Added
CC||monarchdo...@gmail.com
--- Co
https://d.puremagic.com/issues/show_bug.cgi?id=8882
--- Comment #3 from bearophile_h...@eml.cc 2014-01-14 13:22:18 PST ---
(In reply to comment #2)
> zip can throw because of StoppingPolicy.requireSameLength, and iota(x,y,z)
> throws when z can be 0. iota(x) and iota(x,y) are nothrow.
even iot
https://d.puremagic.com/issues/show_bug.cgi?id=8882
--- Comment #2 from bearophile_h...@eml.cc 2014-01-14 03:16:34 PST ---
The situation has now improved:
import std.algorithm: map, filter;
import std.range: iota, zip;
void main() pure nothrow {
foreach (_; map!q{a * a}([1, 2, 3])) {}
http://d.puremagic.com/issues/show_bug.cgi?id=8882
bioinfornatics changed:
What|Removed |Added
CC||bioinfornat...@gmail.com
--- Comment
10 matches
Mail list logo