[Issue 785] static if(is(cent)): "basic type expected, not cent"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 21 10:34:50 PDT 2007


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


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Comment #2 from smjg at iname.com  2007-03-21 12:34 -------
That a type isn't implemented shouldn't render code that tries to use it
_syntactically_ invalid.  It should be rejected at the semantic level, just as
it would be if it were just another undefined identifier.  Thus the body of the
static if would simply be conditioned out, because cent is not a valid type.

How else is one supposed to test whether a given compiler has cent/ucent
implemented?


-- 



More information about the Digitalmars-d-bugs mailing list