• jvw@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    2
    ·
    5 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
      arrow-up
      5
      ·
      5 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.