Post by dhokePost by Leo SiefertIt will be ll in C++0x, so that is probably the better choice.
Nice. Is it a bad sign that I'm pumped up about C++0x? I hope I'm not the
only one.
Post by dhokeThat seems nastily unreadable, using lower-case which in some fonts is not
readily distinguishable from one's... as in whatever font is used by my
news reader, reading your message.
Well you could do this:
#define A_GOOD_TYPE_TO_ASSIGN_LL_CONSTANT_TO __int64
#define LOWERCASE_I i
#define EQUALS =
#define ASSIGN_VALUE(t,n,v) t n EQUALS v
#define INTEGER_CONSTANT_WITH_SUFFIX(val,s) val##s
#define INTEGER_CONSTANT_WITH_LONGLONG_SUFFIX(val) \
INTEGER_CONSTANT_WITH_SUFFIX(val, ll) // <--- clear separation
ASSIGN_VALUE(A_GOOD_TYPE_TO_ASSIGN_LL_CONSTANT_TO,
LOWERCASE_I,
INTEGER_CONSTANT_WITH_LONGLONG_SUFFIX(0x01));
And that way the lowercase ll is clearly distinguishable from the rest of
the constant. This is the way I prefer as it is very readable and clearly
describes what is going on. :-)
Post by dhokeHas the (sub-?)committee considered that?
Lowercase and uppercase both work, in the current standard, and in the draft
for the new one as well (you'll be able to use ll or LL, both must be same
case). See [2.13.1] in both.
Jason