[Issue 785] Make 'cent' and 'ucent' syntactically valid pending implementation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 31 17:29:42 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=785
--- Comment #14 from Stewart Gordon <smjg at 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: -------
More information about the Digitalmars-d-bugs
mailing list