hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Dictionary updated?

    Scheduled Pinned Locked Moved
    Help and Support
    3
    8
    316
    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.
    • iTap DevelopmentI
      iTap Development
      last edited by

      If I have an array as a value for a dictionary key, will that value be updated if the array is changed?

      1 Reply Last reply Reply Quote 0
      • iTap DevelopmentI
        iTap Development
        last edited by

        Just tried it and thatโ€™s how it seems to work...so itโ€™s a pointer?

        D 1 Reply Last reply Reply Quote 0
        • D
          Deeeds @iTap Development
          last edited by

          @iTap-Development In almost all coding environments (in.the.world) arrays and dictionaries are references. Which is (most commonly) a variable pointing to a pointer.

          So, yes, you can think of them like pointers.

          HOWEVER... hyperPad has some places where it locally stores what it finds, without obviously demonstrating that it's created a localised variable containing what it's gotten at a certain time. So that variable will contain what it got, when it got it. Other things in hyperPad dynamically update, some others are references and some seem to be pointers.

          A table laying out which is which of everything in hyperPad would SUPER HELPFUL!!!

          iTap DevelopmentI 1 Reply Last reply Reply Quote 0
          • iTap DevelopmentI
            iTap Development @Deeeds
            last edited by

            @Deeeds thanks!

            1 Reply Last reply Reply Quote 0
            • HamedH
              Hamed Admin
              last edited by Hamed

              Arrays, Dictionaries, and Box containers work similarly. Everything else pulls in the information on execution.

              iTap DevelopmentI 1 Reply Last reply Reply Quote 0
              • iTap DevelopmentI
                iTap Development @Hamed
                last edited by

                @Hamed so does it matter performance wise which I use?

                1 Reply Last reply Reply Quote 0
                • HamedH
                  Hamed Admin
                  last edited by

                  Use the best one for the job.

                  If you have a list of data, use an array.

                  If you have a mapping of data, use a dictionary.

                  If you have one piece of data, use a box container.

                  iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                  • iTap DevelopmentI
                    iTap Development @Hamed
                    last edited by

                    @Hamed ๐Ÿ‘ thanks!

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