Template constraints: opCmp and opUnary!"++"

Philippe Sigaud philippe.sigaud at gmail.com
Fri Dec 20 09:47:50 PST 2013


On Fri, Dec 20, 2013 at 6:33 PM, Francesco Cattoglio
<francesco.cattoglio at gmail.com> wrote:

> Is there any difference between "is(typeof(<somecode>))" and
> __traits(compiles, <somecode>)?

I find the latter cleaner: its intent is more apparent. I use
is(typeof()) only for really testing for type existence.


More information about the Digitalmars-d-learn mailing list