12.03.2014, 21:05
forward announce the compiler that you defined a function somewhere down in the code:
for example
THIS IS WRONG!!!
This is correct
for example
THIS IS WRONG!!!
Код:
//somewhere in the code; function(a,b); //function is defined after the call stock function() { // do something; } So you can't call a function if you didn't define it previously only if you use forward
Код:
forward function(x,y); //somewhere in the code; function(x,y); //function is defined after the call stock function(a,b) { // do something; }