Reddit: SafeD - The Safe Subset of D
Walter Bright
newshound1 at digitalmars.com
Sun Mar 23 11:08:37 PDT 2008
Charles D Hixson wrote:
> PPS: When talking about casts or type conversions, please make it
> explicit whether the same bit pattern is maintained. I often read those
> descriptions, and realize that I can't figure out exactly what is
> happening. With C I was always certain that I was just telling the
> compiler to think about the same piece of memory differently, and that
> nothing actually changed.
int i = 3;
double d = (double)i;
changes the bit pattern in C (as well as in D)
More information about the Digitalmars-d-announce
mailing list