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.

51. Re: Tolua and indexed array pointers (score: 192)
Author: "R. Frazier" <rtdoger@...>
Date: Thu, 17 Mar 2005 14:18:57 -0500
I got it working! Just tell me if this is an acceptable way to do it. I had to trick Tolua :) to think that I was using an indexed array instead of a pointer, so in my package file, I did this: exter
52. Re: How do I get two dimensional array access notation for my (matrix) userdata? (score: 180)
Author: "Jerome Vuarand" <jerome.vuarand@...>
Date: Sun, 27 Jul 2008 14:32:54 +0200
2008/7/27 E. Wing <ewmailing@gmail.com>: It is possible. In my_matrix[2][1] there are two metamethod calls. One on the matrix itself, and one on an intermediate object. To have this work, you need to
53. Re: Empty? No. Array? No. Has? Yes. (score: 178)
Author: Andrew Starks <andrew.starks@...>
Date: Sat, 6 Jul 2013 02:32:35 -0500
I do understand that everyone is more-or-less focused on the idea of an `empty` type and that I've been speaking to mechanisms to know if something is "there but nil" or simply "never there". In case
54. PiL2, ch 28.3: Adding Lua methods to an array? (score: 178)
Author: Carsten Fuchs <CarstenFuchs@...>
Date: Fri, 09 Jun 2006 10:35:49 +0200
Hello all, when we have userdata with a metatable as described in the "array" example in the PiL1 or PiL2, chapter 28.3 "Object-Oriented Access" (http://www.lua.org/pil/28.3.html), I would like to be
55. Re: luajit: any way to make array initialization zero-based? (score: 175)
Author: Tony Finch <dot@...>
Date: Thu, 14 Jun 2012 12:02:33 +0100
There are four points where Lua has one-based table indexes: (1) In the implementation, which is invisible apart from the performance effects. LuaJIT uses a zero base for the array part of its tables
56. RE: tables as array : little confirmation (score: 173)
Author: Alain Meunier <deco33@...>
Date: Thu, 27 Mar 2014 20:28:27 +0100
Hello, Yes I am sorry, I forgot the "k". Here is the right code : -- iterator = 0 basic_table ={k={},v={}} str for x = 0,5 do iterator = iterator + 1 basic_table["k"][iterator] = iterator + 100 end s
57. Re: Empty? No. Array? No. Has? Yes. (score: 173)
Author: Luis Carvalho <lexcarvalho@...>
Date: Sun, 7 Jul 2013 11:54:39 -0400
<snip> It might. Let me just offer again the case of NA vs NULL in R, where two different values serve the two purposes in our discussion: missing value (NA) and deletion (NULL). I much prefer the la
58. tolua++, lua and array indexes (score: 173)
Author: Luo Hei <luo_hei@...>
Date: Sun, 25 Nov 2007 11:00:37 -0500
I have generated wrapper code with tolua to access my C++ classes. But I have found a problem. Lets suppose I have the following: enum Indexer { A=0, B, C } class test { int array{C} } In lua scripts
59. Re: luajit: any way to make array initialization zero-based? (score: 171)
Author: Coda Highland <chighland@...>
Date: Wed, 13 Jun 2012 17:22:26 -0500
Aside: If you use this scheme, use numeric for instead of ipairs(). Not only will ipairs() miss the 0 index, but numeric for is faster anyway (which is clearly important to you). /s/ Adam
60. Re: luajit: any way to make array initialization zero-based? (score: 171)
Author: Coda Highland <chighland@...>
Date: Wed, 13 Jun 2012 17:15:05 -0500
foo = { [0]=0, 1, 2, 3 } Problem solved. /s/ Adam

Search by Namazu v2.0.21