On 9/6/2016 6:44 AM, Ethan Watson wrote:
Suggestions?
Provide a "default" constructor that has a dummy (i.e. unused) parameter. struct _Unused { } alias Unused = immutable(_Unused); Unused unused; ... struct S { this(Unused) { ... } ... } ... S s = S(unused); Auto-generated such a constructor when S is used as a field.