What's C's biggest mistake?

Teemu Pudas tpudas at cc.hut.fi
Sun Dec 27 13:16:25 PST 2009


On 27/12/2009 20:29, Mike James wrote:
> It would be great to have an easy means of accessing bytes in an int or short without having to resort to messy unions.

Don't do that. It's undefined behaviour. Yes, I've been bitten by it.



More information about the Digitalmars-d mailing list