http://d.puremagic.com/issues/show_bug.cgi?id=8339



--- Comment #3 from Don <clugd...@yahoo.com.au> 2012-07-16 07:13:18 PDT ---
(In reply to comment #2)
> We use is(typeof(exp)) to check for compilability all over the place. Are you
> saying that we should be using __traits(compiles, exp) instead?

Probably. Mostly is(typeof()) does what you want, but just be aware that it's a
trick. It's just checking for existence of a type, not for compilability.
It's widespread because it works for D1, which doesn't have __traits.

It's also rather better tested than __traits...

> Using __traits(compiles, {R range;}) still fails here. But should it work as
> I'm trying to do here if the glue layer issues is fixed?

Yes, it should work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to