• Lucid Dreaming - Dream Views




    Page 2 of 2 FirstFirst 1 2
    Results 26 to 28 of 28
    1. #26
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      It's when you see things like this
      http://source.winehq.org/git/wine.gi...6bb4871d43694a

      you wonder how many less bugs there'd be if C had dynamic containers as default
      (\_ _/)
      (='.'=)
      (")_(")

    2. #27
      Banned
      Join Date
      Jun 2008
      Posts
      330
      Likes
      2
      Quote Originally Posted by ninja9578 View Post
      I like arrays ... only with C though, I use real containers for C++.
      Arrays suck You can't resize them, or have variable size arrays, without unnecessary malloc stuff. Plus, you only have to step out of bounds once and *picture of a train wreck here*.

      But yeah C++ containers are great. Read C++ FAQ Lite if you never have: http://www.parashift.com/c++-faq-lite/containers.html

    3. #28
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Arrays only suck if you don't use them properly. I use them all the time. They have a minimal memory footprint and FAST. Graphics have to go as fast as possible so arrays are common in those programs.

      I have a library that handles all of the allocating for me

      The only time that I can think of in graphics where arrays aren't the preferred way of doing things is for the Octree Structure.

    Page 2 of 2 FirstFirst 1 2

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •