Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Dictionary updated?

Dictionary updated?

Scheduled Pinned Locked Moved Help and Support
8 Posts 3 Posters 1.1k Views 1 Watching
  • 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 Offline
    iTap DevelopmentI Offline
    iTap Development
    wrote on last edited by
    #1

    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
    0
    • iTap DevelopmentI Offline
      iTap DevelopmentI Offline
      iTap Development
      wrote on last edited by
      #2

      Just tried it and that’s how it seems to work...so it’s a pointer?

      D 1 Reply Last reply
      0
      • iTap DevelopmentI iTap Development

        Just tried it and that’s how it seems to work...so it’s a pointer?

        D Offline
        D Offline
        Deeeds
        wrote on last edited by
        #3

        @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
        0
        • D Deeeds

          @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 Offline
          iTap DevelopmentI Offline
          iTap Development
          wrote on last edited by
          #4

          @Deeeds thanks!

          1 Reply Last reply
          0
          • HamedH Offline
            HamedH Offline
            Hamed
            Admin
            wrote on last edited by Hamed
            #5

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

            iTap DevelopmentI 1 Reply Last reply
            0
            • HamedH Hamed

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

              iTap DevelopmentI Offline
              iTap DevelopmentI Offline
              iTap Development
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • HamedH Offline
                HamedH Offline
                Hamed
                Admin
                wrote on last edited by
                #7

                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
                0
                • HamedH Hamed

                  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 Offline
                  iTap DevelopmentI Offline
                  iTap Development
                  wrote on last edited by
                  #8

                  @Hamed 👍 thanks!

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search