Inline function more than 5 parameters...



  • According to the scripting best practices blog post inline functions can't have more than 5 parameters. But this works:

    test(1, 2, 3, 4, 5, 6);
    
    inline function test(a, b, c, d, e, f)
    {
        Console.print(a + " | " + b + " | " + c + " | " + d + " | " + e + " | " + f);
    }
    
    // Outputs: 1 | 2 | 3 | 4 | 5 | 6
    

    So does that mean there is no longer a limit?


Log in to reply
 

11
Online

965
Users

3.5k
Topics

29.4k
Posts