Reddit: SafeD - The Safe Subset of D

Bill Baxter dnewsgroup at billbaxter.com
Sun Mar 23 11:05:47 PDT 2008


Charles D Hixson wrote:
> 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.  

Not so:
    int x = (int)2.5;

Not the same bit pattern after as before (not even if it was 2.0 on the 
right).  But maybe you're only talking about casts with pointers in them?

--bb


More information about the Digitalmars-d-announce mailing list