lua-users home
lua-l archive

Search lua-l

This index contains 143,615 documents and 1,774,615 keywords. Last update on 2023-03-09 .

Query: [How to search]

Display: Description: Sort by:

Results:

References: [ attempt: 3298 ] [ to (Too many documents hit. Ignored) ] [ index: 6969 ] [ a (Too many documents hit. Ignored) ] [ nil: 12751 ]

Total 504 documents matching your query.

321. Re: Why this error in table.sort()? (score: 18)
Author: Drake Wilson <drake@...>
Date: Thu, 3 Feb 2011 23:13:33 -0700
Quoth Steve Litt <slitt@troubleshooters.com>, on 2011-02-04 00:49:29 -0500: I'm guessing this is because your comparison function is inconsistent. If a comparison function gives logically inconsisten
322. Re: Why this error in table.sort()? (score: 18)
Author: Geoff Leyland <geoff_leyland@...>
Date: Fri, 4 Feb 2011 19:00:26 +1300
Don't take my word for it, but I think that if your ordering function is wrong (as in, not consistent) then table.sort can end up passing nil as one of the arguments to the ordering function. If you
323. Re: String indexing again (score: 18)
Author: Randy Kramer <rhkramer@...>
Date: Mon, 20 Dec 2010 11:50:46 -0400
Thanks! (To you and the others that replied.) Randy Kramer
324. Re: String indexing again (score: 18)
Author: Dirk Laurie <dpl@...>
Date: Mon, 20 Dec 2010 15:58:49 +0200
Indexing for strings was not defined at all in Lua 5.0: -- Lua 5.0.3 Copyright (C) 1994-2006 Tecgraf, PUC-Rio stdin:1: attempt to index global `s' (a string value) stack traceback: stdin:1: in main c
325. Re: A question about table's length (score: 18)
Author: Klaus Ripke <paul-lua@...>
Date: Tue, 29 Dec 2009 11:58:33 +0100
hmm, how to explain "can be any"? Does this make any sense to you? http://translate.google.de/translate_t?hl=&ie=UTF-8&text=x+CAN+BE+ANY+of+the+indices+that+directly+precedes+a+nil+value&sl=en&tl=zh-
326. Re: require vs dofile and how to organise many functions (score: 18)
Author: Jerome Vuarand <jerome.vuarand@...>
Date: Wed, 22 Jul 2009 14:03:04 +0200
2009/7/21 Sam Roberts <vieuxtech@gmail.com>: To avoid that problem you can use the parameter passed to modules, which is the module name. So a better implementation of bye.lua would be: % cat hi/bye.
327. Re: require vs dofile and how to organise many functions (score: 18)
Author: Sam Roberts <vieuxtech@...>
Date: Tue, 21 Jul 2009 11:28:13 -0700
Maybe I misunderstand what you mean by "namespaces are automatically created for you", because it doesn't look like it to me. I would expect after require"hi.bye" to be able to access "hi.bye", if na
328. Re: LuaJIT performance query (score: 18)
Author: "Vyacheslav Egorov" <mister.aleph@...>
Date: Sun, 15 Jun 2008 23:08:33 +0700
Mike, your response is insightfull as always. It seems that I need: (a) to think before saying anything (b) to educate myself a little before talking about compilers. Yes, I see now that there is no
329. Re: Weird irreproducible error (score: 18)
Author: Steve Heller <steve@...>
Date: Wed, 03 Oct 2007 08:42:07 -0500
Thanks. This is for table.sort, right? Can this result in different answers for exactly the same code and data? If so, I'll go through the code and look for any occurrences of this. Steve
330. Re: Weird irreproducible error (score: 18)
Author: "Goran Zoricic" <goran-gdalgs@...>
Date: Wed, 3 Oct 2007 08:27:53 +0200
When running exactly the same test with the same data over and over, I keep getting different results, usually with a message that says "attempt to index field '?' (a nil value)", in different place
331. Re: Weird irreproducible error (score: 18)
Author: Steve Heller <steveheller@...>
Date: Mon, 1 Oct 2007 10:28:39 -0700 (PDT)
In any event, with exactly the same input data and exactly the same code, how can I get different results on successive runs? Could I have an uninitialized variable? I didn't think that was possible
332. Re: Weird irreproducible error (score: 18)
Author: Ketmar Dark <ketmar@...>
Date: Mon, 1 Oct 2007 20:21:01 +0300
hello, Steve Heller <steve@steveheller.com>. sure. exactly with the code you give...
333. Re: Weird irreproducible error (score: 18)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Mon, 1 Oct 2007 14:15:03 -0300
334. Weird irreproducible error (score: 18)
Author: Steve Heller <steve@...>
Date: Mon, 01 Oct 2007 12:11:40 -0500
I'm using 5.1.2. Has anyone seen this behavior before? Thanks. Steve
335. lua_newthread(), good way to keep the thread values? (score: 18)
Author: Carsten Fuchs <CarstenFuchs@...>
Date: Wed, 22 Aug 2007 18:44:42 +0200
Dear Lua list, I'm trying to provide a "wait" function for the scripts that I call from C++ code, so that we can write e.g. wait(5) and the script waits for 5 seconds, while the rest of the program c
336. Re: loading lua scripts relative to an app's path (score: 18)
Author: askok@...
Date: Fri, 06 Oct 2006 12:51:07 +0300
Lua authors: Way to 'fix' the -l path finding could be to: lua.c could set argv[0] to each library's _full_ filename, during loading of that library. This would suffice. Once the actual filename para
337. Re: Problem with userdata (metatable) (score: 18)
Author: "Anders Bergh" <anders@...>
Date: Wed, 12 Apr 2006 19:28:33 +0200
This is the code that's used in the example: int Image_register (lua_State *L) { luaL_openlib(L, IMAGE, Image_methods, 0); /* create methods table, add it to the globals */ luaL_newmetatable(L, IMAGE
338. RE: Problem with userdata (metatable) (score: 18)
Author: jdarling@...
Date: Wed, 12 Apr 2006 09:43:23 -0700
No idea, I'm still using Lua 5.0.2 but used the LUNA 5.1 as a reference point for my wrapper classes. Hopefully this means that I'm ready for 5.1 when the headers are converted :). - Jeremy "Help I s
339. Re: Problem with userdata (metatable) (score: 18)
Author: "Anders Bergh" <anders@...>
Date: Wed, 12 Apr 2006 18:17:08 +0200
I'm going to test what you did in your Delphi code, and test it in my code to see if it works. How come the http://lua-users.org/wiki/UserDataWithPointerExample example doesn't work though? Did thing
340. RE: Problem with userdata (metatable) (score: 18)
Author: jdarling@...
Date: Wed, 12 Apr 2006 07:20:40 -0700
Since you in C/C++ take a look at how LUNA is doing things. I'm no vertran myself, but I have had some problems with methods in Delphi (actually enough that I believe I see your problem). You need to

Search by Namazu v2.0.21