• lime!@feddit.nu
    link
    fedilink
    arrow-up
    1
    ·
    7 个月前

    because making sure offsets are correct come up a lot when you’re memory-mapping IO.

    • SorryQuick@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      7 个月前

      Right but whether they’re correct or not doesn’t depend on the name you use. Every programmer worth his name knows arrays start at offset zero even if you don’t call it that.