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.

121. Re: Lua 4.0, LCC & warnings (score: 33)
Author: Diego Fernandes Nehab <diego@...>
Date: Sat, 21 Jul 2001 15:34:18 -0300
Hi David, The array element is not actually being accessed. The indexing is only used to compute an address. ANSI C allows references to the position "just after" the array's last element, so that th
122. Re: 'table' as fallback for tables (score: 31)
Author: Tim Hill <drtimhill@...>
Date: Thu, 30 Jun 2016 22:32:02 -0700
First off, the "array part vs hash part" has nothing to do with this .. that is purely related to an internal optimization Lua uses in its implementation of tables. It?s a common mistake to suppose
123. RE: [PROPOSAL] a new function: table.proto() (score: 31)
Author: Benoit Germain <bgermain@...>
Date: Wed, 5 May 2010 10:18:02 +0200
(Sorry, this is going to be a bit long) Yes, this is true for a vector. Sorting is the action of shuffling the values inside the internal implementation so that whatever iterating algorithm we use p
124. Re: 0-based arrays (score: 31)
Author: Miles Bader <miles.bader@...>
Date: Mon, 29 Oct 2007 11:44:44 +0900
Indeed... I have a friend that works on a commercial game engine that uses Lua. The "mismatch" between Lua array conventions and the convention used by the underlying C++ engine is one his number-one
125. Re: Lua is about to become history (score: 31)
Author: Bret Victor <bret@...>
Date: Thu, 4 May 2006 09:14:02 +0000 (UTC)
I believe that one-based indexing was very intentional. Most people (who haven't had their minds warped into conflating ordinals with pointer offsets) expect the third item in a list to be #3. That'
126. Re: [ANN] Lua 5.4.0 (rc1) now available (score: 29)
Author: François Perrad <francois.perrad@...>
Date: Sun, 19 Apr 2020 09:31:34 +0200
Le mer. 15 avr. 2020 à 15:45, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> a écrit : Lua 5.4.0 (rc1) is now available for testing at         http://www.lua.org/work/lua-5.4.0-rc1.tar.gz The c
127. Re: Lua Needs (score: 29)
Author: "Soni L." <fakedme@...>
Date: Fri, 30 Nov 2018 23:10:04 -0200
I think you're just overcomplicating it tbh On Fri, Nov 30, 2018, 12:39 Philippe Verdy <verdy_p@wanadoo.fr wrote: For this reason, the generalization of the ":" pseudo-operator of Lua is not easy: it
128. Re: Lua Needs (score: 29)
Author: Philippe Verdy <verdy_p@...>
Date: Fri, 30 Nov 2018 16:02:57 +0100
Note, my use of "TLS" here is a bit abusive, because it is not strictly thread-local: objects referenced in closures or function environemnt is accessible in other threads by communicating them via y
129. Re: Lua Needs (score: 29)
Author: Philippe Verdy <verdy_p@...>
Date: Fri, 30 Nov 2018 15:39:02 +0100
For this reason, the generalization of the ":" pseudo-operator of Lua is not easy: it would create lot of overhead at compile-time and runtime to create many closure objects, that are compiled using
130. Re: Feature request: hiding upvalues (score: 29)
Author: Philippe Verdy <verdy_p@...>
Date: Fri, 16 Nov 2018 04:25:29 +0100
No, it returns what was in the variable x in the upvalue (i.e. the x part of the closure where it was compiled in scope), and not the x which may be defined anywhere else the function will be called,

Search by Namazu v2.0.21