Re: struct with @disable(d) default constructor doesn't work with arrays?

2012-08-22 Thread Simen Kjaeraas
On Wed, 22 Aug 2012 13:09:49 +0200, bearophile wrote: Minas Mina: I think it's a bug, what do you think? Search for it in Bugzilla. Maybe it's there already. Bye, bearophile It is. #7021/#8457 -- Simen

Re: struct with @disable(d) default constructor doesn't work with arrays?

2012-08-22 Thread bearophile
Minas Mina: I think it's a bug, what do you think? Search for it in Bugzilla. Maybe it's there already. Bye, bearophile

struct with @disable(d) default constructor doesn't work with arrays?

2012-08-22 Thread Minas Mina
I have this struct: struct S { int[] t; @disable this(); this(int sz) { t = new int[sz]; t[] = 1; } S opCall(int sz) { S s = S(sz); return s;