What are THOOOOSE
#8

With an example would be easier to understand. When a function returns a value with tag and it is added after the part of code it is called such as:
PHP код:
public OnFilterScriptInit()
{
    
ReturnFloat();
    return 
1;
}
FloatReturnFloat()
{
    return 
0.0;

will give 208 - function with tag result used before definition, forcing reparse.

If you however have the function BEFORE, it will not give that warning:
PHP код:
FloatReturnFloat()
{
    return 
0.0;
}
public 
OnFilterScriptInit()
{
    
ReturnFloat();
    return 
1;

Another solution is using forward keyword such as:
PHP код:
forward FloatReturnFloat();
public 
OnFilterScriptInit()
{
    
ReturnFloat();
    return 
1;
}
FloatReturnFloat()
{
    return 
0.0;

Reply


Messages In This Thread
What are THOOOOSE - by Ritzy2K - 10.05.2016, 12:59
Re: What are THOOOOSE - by Ritzy2K - 10.05.2016, 13:03
Re: What are THOOOOSE - by Dayrion - 10.05.2016, 13:18
Re: What are THOOOOSE - by Ritzy2K - 10.05.2016, 13:23
Re: What are THOOOOSE - by Dayrion - 10.05.2016, 13:27
Re: What are THOOOOSE - by iggy1 - 10.05.2016, 13:31
Re: What are THOOOOSE - by Dayrion - 10.05.2016, 13:33
Re: What are THOOOOSE - by Konstantinos - 10.05.2016, 13:33
Re: What are THOOOOSE - by VVWVV - 10.05.2016, 13:33
Re: What are THOOOOSE - by Crayder - 10.05.2016, 13:43

Forum Jump:


Users browsing this thread: 3 Guest(s)