Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Legacy C Kills Me

Legacy C Kills Me

Dovyman
Dovyman's Journal · · 1 min read
1,086 0
Once upon a time, merely years after I was born, and only very shortly after the first ANSI C standard - the following was apparently an acceptable and widely understood cast:

(uint32 *((*)()))&var


Not only is it bad enough that they widely declare void pointers instead of typing variables - but they even go so far as to use casts that change the return type and arguments of a function.

Discussion

Loading comments...