lua-users home
lua-l archive

Search lua-l

This index contains 143,604 documents and 1,774,497 keywords. Last update on 2023-03-08 .

Query: [How to search]

Display: Description: Sort by:

Results:

References: [ lua (Too many documents hit. Ignored) ] [ array: 5396 ] [ indexing: 1373 ]

Total 296 documents matching your query.

11. Re: String indexing again (score: 268)
Author: Axel Kittenberger <axkibe@...>
Date: Mon, 20 Dec 2010 22:27:31 +0100
"A string that doesnt support indexing" sorry that should read, "An array that doesnt support indexing"
12. Re: 1-based indexing in Lua or the one without zero (score: 265)
Author: Axel Kittenberger <axkibe@...>
Date: Mon, 23 Apr 2018 18:58:50 +0200
Totally ok, but I do not understand why you point we have several ways of counting when I stated that was measuring. About points 1..2 when indexing in fortran/c/lua/python you use that, when counti
13. Re: So I had this weird idea to solve the indexing problem (score: 263)
Author: Philippe Verdy <verdy_p@...>
Date: Tue, 11 Jun 2019 11:57:57 +0200
True but one must remember that index(0) is not enumerated by ipair() which only treats indexes that are part of an uninterrupted ordinal "sequence" from 1 to N. And Lua implementations have normally
14. Re: Request for Lua 6 to have 0-based indexing (score: 260)
Author: Oliver Kroth <oliver.kroth@...>
Date: Mon, 15 Nov 2021 08:08:16 +0100
If you want to start counting from zero, do so. Lua won't stop you doing that. You may even start at -1 or whatever you like. It's not a Lua limitation, only the functions in the table module are use
15. Re: Request for Lua 6 to have 0-based indexing (score: 260)
Author: Ruki Wang <waruqi@...>
Date: Mon, 15 Nov 2021 13:40:40 +0800
Oh, I just upgraded from luajit to lua5.4 because lua is very maintainable and did not encounter too many compatibility issues. If it is introduced in lua 6, maybe I can only use lua 5.x forever or s
16. Re: Request for Lua 6 to have 0-based indexing (score: 260)
Author: Tom Yaxley <tommitytom@...>
Date: Mon, 15 Nov 2021 16:09:12 +1100
As much as I would love Lua to have been implemented using 0-based indexing, changing it at this point is completely unrealistic.  It's so massively breaking that every existing lua application would
17. 1-based indexing in Lua (score: 260)
Author: Dirk Laurie <dirk.laurie@...>
Date: Thu, 29 Mar 2018 10:36:39 +0200
2018-03-29 7:48 GMT+02:00 Charles Heywood <vandor2012@gmail.com>: Agreed. Moreover, it is not strictly correct to say that Lua has 1-based indexing. Even to say that the Lua standard library and the
18. Re: 1-based indexing in Lua or the one without zero (score: 259)
Author: Francisco Olarte <folarte@...>
Date: Tue, 24 Apr 2018 12:35:39 +0200
I'm not discussing indexing. I'm discussing how I pace a distance ( or see people pace it ). Maybe my choice of words was bad, I meant "stand still at the start and say one, two, three as I walked.".
19. Re: Request for Lua 6 to have 0-based indexing (score: 254)
Author: Flyer31 Test <flyer31@...>
Date: Mon, 15 Nov 2021 06:47:12 +0100
But concerning string indices, counting strings starting from zero is awkward... try to explain this to your grandparents :). Concerning strings, I also love this additional possibility to use neg in
20. RE: Request for Lua 6 to have 0-based indexing (score: 254)
Author: Steven Degutis <sbdegutis@...>
Date: Sun, 14 Nov 2021 16:33:34 -0600
To clarify the offset point: <o:p> </o:p> It?s not just about pointers, it?s useful any time you have an ?edge? that you want to start from, and you want to e.g. loop through something and get an off

Search by Namazu v2.0.21