HISE Logo Forum
    • Categories
    • Register
    • Login

    Declaring multiple const variables on single line causes crash

    Scheduled Pinned Locked Moved Bug Reports
    crashmultiplevariablessingle line
    3 Posts 2 Posters 365 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

      As the title says.

      const var a=0, b=1, c=2 == crash.

      No problem with var or reg though.

      Btw what's the difference between const a = 0 and const var a = 0?

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

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

        Bump bump, especially interesting the const vs const var thingy. @Christoph-Hart ...

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

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          const and const var is the same. Not sure about the multiple duplication thingie, but just don't :)

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

          49

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts