IO 😇@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 3 个月前oddly specificlemmy.blahaj.zoneimagemessage-square198fedilinkarrow-up11.51Karrow-down113
arrow-up11.49Karrow-down1imageoddly specificlemmy.blahaj.zoneIO 😇@lemmy.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 3 个月前message-square198fedilink
minus-squaresquaresinger@lemmy.worldlinkfedilinkEnglisharrow-up32·3 个月前If this is about a counter for users in the chat, sure. But if this is an array of users indexed by an 8-bit number, then it will fit 256 slots with the first slot being numbered 0.
minus-squaresquaresinger@lemmy.worldlinkfedilinkEnglisharrow-up1·3 个月前Unless it’s lua, then screw anyone programming with it. Have to use lua for my current project and the 1-based indexing is really screwing with me.
If this is about a counter for users in the chat, sure. But if this is an array of users indexed by an 8-bit number, then it will fit 256 slots with the first slot being numbered 0.
Fair, sounds reasonable
this guy indexes
Unless it’s lua, then screw anyone programming with it.
Have to use lua for my current project and the 1-based indexing is really screwing with me.