[Issue 16166] struct constructor and AliasSeq

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16166

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P4

--


[Issue 16166] struct constructor and AliasSeq

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16166

--- Comment #2 from Danila Letunovskiy  ---
struct Window {
string title;
int x, y;
int w, h;
alias title this;
}

void main(){
Window w = "Foo";
}

--


[Issue 16166] struct constructor and AliasSeq

2016-06-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16166

--- Comment #1 from Danila Letunovskiy  ---
this(T...)(T t){ this.tupleof[0..t.length] = t; }

I want that this work by default.

--