Re:Fengari – Lua for the Browser
by otikik on Sunday February 20, 2022 @06:51PM
(#30410417)
If you work with pure Lua that’s a non issue. The ipairs function abstracts that away, and for numerical loops are written different than in C, with a start value (included), an end value (included) and a step (optional), and no exit condition. You can’t put i<len there as a result like you would do in C.
Agreed that interaction with C or other 0-based languages or systems (eg screen coords) makes things more difficult.
Agreed that interaction with C or other 0-based languages or systems (eg screen coords) makes things more difficult.