3 ms·
> This doesn't work in C because the function is not necessarily defined in the same translation unit. It does work in C ― that's what the include files are fo
by Joker_vD 3y ago
> This doesn't work in C because the function is not necessarily defined in the same translation unit.
It does work in C ― that's what the include files are for (among other things), after all. So it's possible to be able to forward-declare functions outside the translation unit only (extern-declare?), those inside the translation units don't need to even if the compiler works in a single pass. And those external declaration could still be introduced at the very end of the translation unit and still would count. I dunno, seems like a pretty reasonable idea.