bug, or is this also intended?

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 3 04:48:46 PDT 2016


On 10/03/2016 01:40 PM, deed wrote:
> Unexpected auto-concatenation of string elements:
>
> string[] arr = ["a", "b" "c"];    // ["a", "bc"], length==2
> int[] arr2   = [[1], [2] [3]];    // Error: array index 3 is out of
> bounds [2][0 .. 1]
>                                   // Error: array index 3 is out of
> bounds [0..1]
>
> dmd 2.071.2-b2

Intended but on its way out. 2.072.0-b1 tells you it's deprecated.


More information about the Digitalmars-d-learn mailing list