|
|
|
|
|
by colonwqbang
814 days ago
|
|
I think it can be both things. Haven't you ever seen someone do struct Thing;
struct OtherThing;
in lieu of just including "thing.h"? I see it frequently in real life code bases and I can't see a reason for it other than compilation time optimisation. |
|
Hmm, there might be some interesting linker hacks to patch things up post compilation. But then you'd want some way to do the forward declaration for cases where Thing could have been passed in registers...