SalaciousBCrumb@lemy.lol to General Memes & Private Chuckle@lemmy.dbzer0.com · 23 days agoMaking a difference, one date at a time.lemy.lolimagemessage-square5fedilinkarrow-up194
arrow-up194imageMaking a difference, one date at a time.lemy.lolSalaciousBCrumb@lemy.lol to General Memes & Private Chuckle@lemmy.dbzer0.com · 23 days agomessage-square5fedilink
minus-squareinsufferableninja@sh.itjust.workslinkfedilinkEnglisharrow-up8·23 days agoThat’s 100% language dependent. Lua, for example, starts at 1
minus-squareDaisy (she/her)@lemmy.mllinkfedilinkarrow-up4·23 days 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.