www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Hexadecimal literal

reply Jason Mills <jmills cs.mun.ca> writes:
Was the following ever (previous version) a valid D hex literal?
    int h = 12h;
Which is the same as
    int h = 0x12;

I quickly searched the change log but didn't find any indication it was.

Thanks,
Jason
Mar 11 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
"Jason Mills" <jmills cs.mun.ca> wrote in message 
news:duuuc1$c4e$1 digitaldaemon.com...
 Was the following ever (previous version) a valid D hex literal?
    int h = 12h;
 Which is the same as
    int h = 0x12;
It is in the C compiler, but not in D.
Mar 11 2006