• DaPorkchop_@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      24 minutes ago

      The longer I look at this the more uncertain I am whether or not this is AI.

      The fingers look weirdly long, but all of the text is actually written and oriented correctly, but the shading across the surface of all the cards seems to change brightness randomly, …

            • Valmond@lemmy.world
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              4 hours ago

              Well no because if you allocate stuff in the constructor, you are going to write a destructor now, freeing that allocated stuff up / closing that socket, pipe whatever etc.

              Right?

              Right??

              • MyNameIsRichard@lemmy.ml
                link
                fedilink
                arrow-up
                2
                ·
                edit-2
                3 hours ago

                If I do it straight after the constructor, then definitely but if I get distracted by something else then it’s only probably until I run it through valgrind and see the leak. These days, I mostly use smart pointers in new code though so there are fewer opportunities to need a destructor. It’s funny that I never forget when opening a file or db connection!

                • Valmond@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 hour ago

                  After the constructor?

                  No need for a destructir bc smart pointers?

                  Man you does not make any sense.