02-13-2004, 07:27 AM
Quote:Is it just me or is all the sample source written so that functions that require other functions go in later?
Thats because that haven't been explicity defined, this is true for any C compiler.
Code:
int main() {
func();
}
void func() {
/* Blah */
}
Code:
void func() {
/* Blah */
}
int main() {
func();
}
Code:
void func();
int main() {
func();
}
void func() {
/* Blah */
}
Either of the last two can be compiled using a one-pass compiler and look up tables.
esus saves.... Passes to Moses, shoots, he scores!