Proof that C can do forward referencing:
— WalterBright (@WalterBright) June 4, 2023
#include <stdio.h>
int main() { fwd(); return 0; }
void fwd() { printf("hello forward!\n"); }
This compiles and runs with D's #ImportC C11 compiler. Only typedefs cannot be forward referenced, due to syntactic ambiguities.…
from Hacker News https://twitter.com/WalterBright/status/1665478419210199040
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.