Re: struct sta­tic ini­tial­izer method apply to UDA

2018-12-06 Thread learnfirst1 via Digitalmars-d-learn
On Thursday, 6 December 2018 at 12:50:34 UTC, Radu wrote: On Thursday, 6 December 2018 at 11:09:47 UTC, Basile B. wrote: Which would be a real nice feature to have. this is what I need, I guess I has to wait.

Re: struct sta­tic ini­tial­izer method apply to UDA

2018-12-06 Thread Radu via Digitalmars-d-learn
On Thursday, 6 December 2018 at 11:09:47 UTC, Basile B. wrote: On Thursday, 6 December 2018 at 11:04:23 UTC, learnfirst1 wrote: my question is how to easy use struct sta­tic ini­tial­izer method with UDA. Fake code: struct DbColumn { string name; boolunique ; bool

Re: struct sta­tic ini­tial­izer method apply to UDA

2018-12-06 Thread Basile B. via Digitalmars-d-learn
On Thursday, 6 December 2018 at 11:04:23 UTC, learnfirst1 wrote: my question is how to easy use struct sta­tic ini­tial­izer method with UDA. Fake code: struct DbColumn { string name; boolunique ; boolsigned ; boolnullable ; } struct Order {

struct sta­tic ini­tial­izer method apply to UDA

2018-12-06 Thread learnfirst1 via Digitalmars-d-learn
my question is how to easy use struct sta­tic ini­tial­izer method with UDA. Fake code: struct DbColumn { string name; boolunique ; boolsigned ; boolnullable ; } struct Order { uint id; @DbColumn({ .nullable= true}) // not w