4 ms·
All the hacks that make assumption on some type sizes like pointers that will change on 64bit architectures will break your program. Hacks are seen as "good" C
by baby 9y ago
All the hacks that make assumption on some type sizes like pointers that will change on 64bit architectures will break your program.
Hacks are seen as "good" C programming, and encouraged, so this kind of thing happens.
- rsynnott 9y agoNot even a case of hacks; before modern (C99) C, standard C didn't have fixed-width integer types at all, so behaviour can very easily change with architecture.
- jackhack 9y ago>>Hacks are seen as "good" C programming, and encouraged, so this kind of thing happens. Perhaps among new developers. Us old-timers who have to maintain this stuff have learned to avoid "clever" code rather quickly and admonish those who write it. Elegant, to me, includes "easy to read and understand."