SalaciousBCrumb@lemy.lol to General Memes & Private Chuckle@lemmy.dbzer0.com · 2 months agoMaking a difference, one date at a time.lemy.lolimagemessage-square5fedilinkarrow-up195
arrow-up195imageMaking a difference, one date at a time.lemy.lolSalaciousBCrumb@lemy.lol to General Memes & Private Chuckle@lemmy.dbzer0.com · 2 months agomessage-square5fedilink
minus-squareinsufferableninja@sh.itjust.workslinkfedilinkEnglisharrow-up8·2 months agoThat’s 100% language dependent. Lua, for example, starts at 1
minus-squareDaisy (she/her)@lemmy.mllinkfedilinkarrow-up4·2 months agoSure, but under the hood, it is still 0 indexed, since it uses the index and type size to offset in memory and get your value. Also some languages let you set where you want indexing to start from, which is kind of funny.
That’s 100% language dependent. Lua, for example, starts at 1
Sure, but under the hood, it is still 0 indexed, since it uses the index and type size to offset in memory and get your value. Also some languages let you set where you want indexing to start from, which is kind of funny.