C
Clark S. Cox III
matevzb said:This isn't C, it's a C++ constructor if I'm not mistaken. It has a
different meaning than a cast, it is however nevertheless ugly.
<OT>
No, it is a cast, albeit with a different syntax. In C++, the following
are semantically identical:
char(b+c*c-d)
(char)(b+c*c-d)
Almost as ugly as the abuse ("overloading") of the shift operator.
If I had a penny for each bug I found due to someone "saving some
keystrokes"...
<OT>
Though it does "save some keystrokes" (which, I agree is a horrible
justification for allowing something), that is not the reason for
allowing that syntax.
</OT>