News for hackers. Stuff that matters.
Re:Learn Lua in 15 Minutes (2013) by rstupek on Tuesday June 30, 2020 @08:30PM (#23696423)
Pascal had indexes start at 1 if I remember correctly
Re:Learn Lua in 15 Minutes (2013) by dvh on Wednesday July 01, 2020 @01:18AM (#23697998)
You remember wrong.

    var a : array of integer;
        b : array[0..9] of integer;
        c : array[1..10] of integer;  
    begin
        writeln(low(a));    // 0
        writeln(high(a));   // -1
        writeln(low(b));    // 0
        writeln(high(b));   // 9
        writeln(low(c));    // 1
        writeln(high(c));   // 10
    end.
Re:Learn Lua in 15 Minutes (2013) by skocznymroczny on Wednesday July 01, 2020 @03:57AM (#23698994)
Strings started at 1 because 0th byte was holding the string length.