HISE Logo Forum
    • Categories
    • Register
    • Login

    Inline function more than 5 parameters...

    Scheduled Pinned Locked Moved Scripting
    2 Posts 1 Posters 150 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      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?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @d.healey
        last edited by

        @Christoph-Hart bump?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        54

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts