Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I have an otherwise quite good book on Direct3D 9.0c (in C++ of course), but there are 'little things' which look like mere bad style, but which I'm pretty certain cause undefined behaviour.

Using the Windows 'ZeroMemory' macro to assign bitwise zero over a newly declared object, rather than using a constructor like god intended.

In C++, null isn't required to be bitwise zero, so I'm fairly sure nasal demons are possible here. (Do we still have 'effective type' in C++?)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: