|
|
|
|
|
by Joker_vD
450 days ago
|
|
Was it really designed this way? I keep hearing this claim but I don't think Ritchie himself actually confirmed that? Also, notice how the functions call each other from wherever, even from different files, without need of any forward declarations, it simply works, which, as I have been repeatedly told, is not something a single-pass compiler can implement :) |
|
Regarding functions, it only works if the function returns int and you match the types correctly for any call that doesn't have the prototype in scope. I believe this to be one of the relict B compatibility features, BTW, since that's exactly how it also worked in B (except that int is the only type there so you only had to match the argument count correctly).