My suggestion is to introduce some kind of forward declarations of functions (afaik called prototyping in C/C++), so that the concrete order become less important. Let's have a small example showing what I mean:
Code: Select all
Integer DoSomething(Integer Param); // Forward declaration, "This function comes later"
Integer DoSomethingElse(Integer Param) {
return DoSomethind(Param) + 42;
}
// Finally define the function
Integer DoSomething(Integer Param) {
return 1337;
}