[Issue 19289] New: std.range.transposed with enforceNotJagged not throwing
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 6 14:50:30 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19289
Issue ID: 19289
Summary: std.range.transposed with enforceNotJagged not
throwing
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
See https://forum.dlang.org/thread/tmqppgmuevecltmxygrd@forum.dlang.org
berni wrote:
---
I expect this small program to throw an Exception:
> import std.stdio;
> import std.range;
>
> void main()
> {
> auto a = [[1,2],
> [4,5,3]];
>
> a.transposed!(TransverseOptions.enforceNotJagged).writeln;
> }
But it just outputs:
> [[1, 4], [2, 5], [3]]
Is it a bug or is it me who's doing something wrong?
---
--
More information about the Digitalmars-d-bugs
mailing list