http://d.puremagic.com/issues/show_bug.cgi?id=785
--- Comment #14 from Stewart Gordon <s...@iname.com> 2012-01-31 17:29:40 PST --- (In reply to comment #12) > >The point of doing this is to enable libraries to support cent/ucent _if_ the > language/compiler/platform supports it, by using a static if to test whether > the type exists. > > You can do something like: > > static if (__traits(compiles, { ucent a = 3; })) ... Under DMD 2.057 with the most trivial use: static if (__traits(compiles, { ucent a = 3; })) {} cent_compiles.d(1): found 'ucent' instead of statement -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------