static opCall 'hidden' by incompatible constructors

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 20 07:05:27 PDT 2014


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.


More information about the Digitalmars-d mailing list