this(T...) not called in struct constructor
Timothee Cour
thelastmammoth at gmail.com
Tue Sep 17 22:28:33 PDT 2013
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)
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130917/3f0caaa9/attachment.html>
More information about the Digitalmars-d-learn
mailing list