27.03.2013, 13:57
So I found out that you can have functions with a tag, for example:
But if you compile this, the compiler will print out a warning:
Then I found out that you have to use forward before the function, so:
And now, the compiler will compile normally without any warnings. So, my question is: is it any better by using tagged functions or is it the same by using plain functions like this:
pawn Код:
Float:square(Float:a)
return (a * a);
Код:
: warning 208: function with tag result used before definition, forcing reparse
pawn Код:
forward Float:square(Float:a);
Float:square(Float:a)
return (a * a);
pawn Код:
square(Float:a)
return (a * a);