HISE Logo Forum
    • Categories
    • Register
    • Login

    variables

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 143 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.
    • MikeBM
      MikeB
      last edited by

      const or const var?
      

      I have seen only "const" without "var" several times now - is that enough?
      It does work!

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

        Link Preview Image
        Declaring multiple const variables on single line causes crash

        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?

        favicon

        Forum (forum.hise.audio)

        I prefer const because it's less code :)

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

        MikeBM 1 Reply Last reply Reply Quote 1
        • MikeBM
          MikeB @d.healey
          last edited by

          @d-healey Ok - Thanks

          "One hour of trial and error can save 10 minutes of reading the manual."
          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

          20

          Online

          1.8k

          Users

          12.0k

          Topics

          104.2k

          Posts