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.

71. Re: How do I get two dimensional array access notation for my (matrix) userdata? (score: 166)
Author: Olivier Galibert <galibert@...>
Date: Tue, 29 Jul 2008 13:53:53 +0200
Out of context, the statement can be considered nonsense. In context, it isn't. The rest of the sentence talks about indexing a table with it, where *only* lua's equality definition applies. Communic
72. Re: How do I get two dimensional array access notation for my (matrix) userdata? (score: 166)
Author: "E. Wing" <ewmailing@...>
Date: Mon, 28 Jul 2008 21:26:55 -0700
Sorry, now I'm really confused: {1,2} and {1,2} look visually identical to me. And what is [1,2]? Does that have any meaning in Lua? (When I tried it, I thought I got a syntax error.) Thanks, Eric
73. Re: How do I get two dimensional array access notation for my (matrix) userdata? (score: 166)
Author: Olivier Galibert <galibert@...>
Date: Mon, 28 Jul 2008 17:41:30 +0200
It would be highly surprising, because {1,2} and {1,2} are different[1], so indexing with them would give a different cell each time. OG. [1] Different tables, even if they have the same contents, he
74. Re: [Pythonic] Are empty tuple and array literals syntactically incompatible? (score: 164)
Author: Sergey Zakharchenko <doublef.mobile@...>
Date: Fri, 13 Jul 2018 19:00:19 +0300
Dirk, "Dirk Laurie" <dirk.laurie@gmail.com>: I know I'm a bit slow but never saw the answer to your exact original question, so: x=A[[]] becomes ambiguous (function call with empty string argument vs
75. tables as array : little confirmation (score: 164)
Author: Alain Meunier <deco33@...>
Date: Thu, 27 Mar 2014 16:55:56 +0100
Hello, I know that tables don't preserve order in case of an associative array. but I 've got the following code (didn't scoped them for the ex): -- iterator = 0 basic_table ={} str for x = 0,5 do it
76. Re: luajit: any way to make array initialization zero-based? (score: 164)
Author: Geoff Leyland <geoff_leyland@...>
Date: Thu, 14 Jun 2012 11:16:38 +1200
Have you considered allocating your FFI arrays to be one longer than they need to be, and then remembering to offset the pointer to the array by one when you pass it to external C functions. Not exac
77. Re: How do I get two dimensional array access notation for my (matrix) userdata? (score: 164)
Author: Michael Ferenduros <mike.ferenduros@...>
Date: Mon, 28 Jul 2008 17:09:23 +0300
You can establish the relationship in two ways: 1) Use luaL_ref() to create a reference to the matrix, and store it in the vector struct. This will pin the Matrix until you release the ref (which you
78. Re: How do I get two dimensional array access notation for my (matrix) userdata? (score: 164)
Author: "E. Wing" <ewmailing@...>
Date: Mon, 28 Jul 2008 04:15:57 -0700
Thank you for the responses. I went with Jerome's suggestions and now I have a few follow-up questions. As you suggested, I introduced a new MyVector userdata type which gets created and returned on
79. Re: Empty? No. Array? No. Has? Yes. (score: 159)
Author: Andrew Starks <andrew.starks@...>
Date: Wed, 3 Jul 2013 20:45:18 -0500
On Wednesday, July 3, 2013, Philipp Janda wrote: Am 03.07.2013 22:10 schröbte Andrew Starks: On Wed, Jul 3, 2013 at 2:32 PM, Philipp Janda <siffiejoe@gmx.net> wrote: c is 3, no matter what empty() or
80. Re: Empty? No. Array? No. Has? Yes. (score: 159)
Author: Philipp Janda <siffiejoe@...>
Date: Thu, 04 Jul 2013 03:23:00 +0200
local a, b, c = t[ 1 ], t[ 2 ], t[ 3 ] c should be equal to t[ 3 ] even if t[ 1 ] and t[ 2 ] do not exist. Of course, but it would seem reasonable that: exists(a) --> false exists(b) --> false No, th

Search by Namazu v2.0.21