www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19289] New: std.range.transposed with enforceNotJagged not


          Issue ID: 19289
           Summary: std.range.transposed with enforceNotJagged not
           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],
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