• @jvw@lemmy.blahaj.zone
    link
    fedilink
    39 months ago

    Isn’t that like, how you declare different dimensionally sized arrays? If you don’t care about memory integrity?

    It’s been literally decades since I had to deal with code like that, so I may have jumped my stack.

    • @calcopiritus@lemmy.world
      link
      fedilink
      59 months ago

      If you do it with fixed-size arrays you can accomplish multi-dimension with just int*. Lots of pointer arithmetic needed though. Probably still faster than n levels of indirection.