array concatenation issue, it's a bug in dmd2.0x
Tobias Kieslich
tobias at justdreams.de
Tue Mar 18 10:16:35 PDT 2008
Hi,
as confirmed by downs, myself and bearophile in the 'works in gdc-1.0'
thread this is a bug in D 2.0. Guess I get a bugtracker account.
Dooh! what a way to start to learn a language :P Just kidding, I like D
a lot, it's a neat language.
-Tobias
On Tue, 18 Mar 2008, Tobias Kieslich wrote:
> Now, here it is where it gets weird. Dynamic arrays of static arrays:
>
> int [2][] b =[[0,1],[2,3]];
> b ~= [[4,5]]; // fail, because concatenate [2u][] with [][1u]
> b ~= [4,5]; // success but wrong result as b holds now:
> // [[0 1] [2 3] [4 5] [0 0]]
>
More information about the Digitalmars-d
mailing list