3 ms·
I don't understand why anyone cares. you grab the .h file and call "load a jpeg"/"draw a button" or you grab two files and call "load a jpeg"/"draw a button" A
by gameswithgo 9y ago
I don't understand why anyone cares.
you grab the .h file and call "load a jpeg"/"draw a button" or you grab two files and call "load a jpeg"/"draw a button"
Are we bikeshedding about this?
- Koshkin 9y agoThis is a matter of adhering to a sound engineering principle, and the approach in question has not been generally considered acceptable. To explain why, one of the ideas behind header files was that they could be freely reused in more than one part of a project; therefore, for example, any executable code appearing in a header file might end up existing in multiple copies throughout the executable (perhaps, depending on the linker).
- jcelerier 9y ago> any executable code appearing in a header file might end up existing in multiple copies throughout the executable that's why the keyword "inline" exists.