Tuesday, March 15, 2005


Tonight (late night)

Okay, this is not going into another entry because I am too lazy to create one but here it goes.

Why the fuck can people not understand C89/C99/C++ aliasing rules, they are simple and easy to understand. Basically you cannot access (and be defined) the memory location via two different types (signed/unsigned are considered same types) but you can access it via a char (signed or unsigned) and still be fine. Using unions is the correct way of doing this access.

This comment has been removed by a blog administrator.
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?