digitalmars.D.bugs - [Issue 19289] New: std.range.transposed with enforceNotJagged not
- d-bugmail puremagic.com (22/32) Oct 06 2018 https://issues.dlang.org/show_bug.cgi?id=19289
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 puremagic.com Reporter: n8sh.secondary 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? --- --
Oct 06 2018