Re: Arty of Constructor

2015-11-19 Thread John Colvin via Digitalmars-d-learn
On Thursday, 19 November 2015 at 06:20:28 UTC, Andrew wrote: The documentation gives plenty of examples of how to use a static if with the arity trait, but how do I specify the constructor of an object as the parameter to arity? Thanks Ugly but works: import std.traits; struct A {

Arty of Constructor

2015-11-18 Thread Andrew via Digitalmars-d-learn
The documentation gives plenty of examples of how to use a static if with the arity trait, but how do I specify the constructor of an object as the parameter to arity? Thanks