• jvw
    link
    fedilink
    arrow-up
    3
    ·
    1 month 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
      arrow-up
      5
      ·
      1 month 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.