On 19/07/2014 10:32, Kagamin wrote:
Try to define a constructor with parameters, then compiler won't generate the default constructor, so the parameterless opCall won't be hidden.
That only works for classes, not structs.
Nick Treleaven via Digitalmars-d Mon, 21 Jul 2014 10:34:42 -0700
On 19/07/2014 10:32, Kagamin wrote:
Try to define a constructor with parameters, then compiler won't generate the default constructor, so the parameterless opCall won't be hidden.
That only works for classes, not structs.