Re: this(T...) not called in struct constructor

2013-09-18 Thread H. S. Teoh
On Wed, Sep 18, 2013 at 10:12:04AM +0200, monarch_dodra wrote: > On Wednesday, 18 September 2013 at 05:28:41 UTC, Timothee Cour > wrote: > >This may have been discussed before, but I'm not sure whether this is > >a bug or not. In any case it's a bit confusing. > > > >struct Foo2{ > > this(T...)(T

Re: this(T...) not called in struct constructor

2013-09-18 Thread monarch_dodra
On Wednesday, 18 September 2013 at 05:28:41 UTC, Timothee Cour wrote: This may have been discussed before, but I'm not sure whether this is a bug or not. In any case it's a bit confusing. struct Foo2{ this(T...)(T args){ assert(0); } } void main(){ auto a2=Foo2();//doesn't call asser

Re: this(T...) not called in struct constructor

2013-09-18 Thread Gary Willoughby
On Wednesday, 18 September 2013 at 05:28:41 UTC, Timothee Cour wrote: This may have been discussed before, but I'm not sure whether this is a bug or not. In any case it's a bit confusing. struct Foo2{ this(T...)(T args){ assert(0); } } void main(){ auto a2=Foo2();//doesn't call asser

this(T...) not called in struct constructor

2013-09-17 Thread Timothee Cour
This may have been discussed before, but I'm not sure whether this is a bug or not. In any case it's a bit confusing. struct Foo2{ this(T...)(T args){ assert(0); } } void main(){ auto a2=Foo2();//doesn't call assert(0) (ie this(T...) not called) }