Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 341. ipairs in Lua 5.3.0-alpha (score: 35)
- Author: Jan Behrens <jbe-lua-l@...>
- Date: Wed, 13 Aug 2014 22:33:23 +0200
- Hello, I have recently been writing a JSON parser[1] to be used by our Lua web framework[2]. Since JSON arrays may contain null values, and since one of the library's goals is to represent JSON null
- 342. Re: ipairs_remove - remove items from array while iterating it (score: 35)
- Author: Philipp Janda <siffiejoe@...>
- Date: Sat, 02 Nov 2013 19:19:13 +0100
- Am 02.11.2013 18:27 schröbte Thijs Schreijer: Well noted! Also including the fix by Ashwin Hirchi (I love this list!) local function ipairs_remove(tbl) local i = 0 local shiftback = 0 local remove =
- 343. Re: Running lua code as as a single coroutine without creating lua thread (score: 35)
- Author: Curt <curt@...>
- Date: Wed, 01 Feb 2012 21:15:40 -0500
- It might not be suitable for you, but I just want to take this opportunity to plug my new multi-tasking library, it would do this pretty cleanly and bring a lot more options to the tablehttp://northa
- 344. Running lua code as as a single coroutine without creating lua thread (score: 35)
- Author: Dmitry Marakasov <amdmi3@...>
- Date: Thu, 2 Feb 2012 00:04:25 +0400
- Hi! I want lua code to be running as a single coroutine. For example, imagine C/C++ GUI application with logic written in lua. GUI event loop runs in C/C++, and lua code needs to drop back to it when
- 345. Re: Extensions made by the Tilde debugger (score: 35)
- Author: HyperHacker <hyperhacker@...>
- Date: Sat, 27 Aug 2011 19:11:35 -0600
- These seem like quite useful extensions, although I'm not sure what the difference is between the error hook and the handler set by xpcall... -- Sent from my toaster.
- 346. Extensions made by the Tilde debugger (score: 35)
- Author: Joshua Jensen <josh.jjensen@...>
- Date: Sat, 27 Aug 2011 17:03:24 -0600
- Hi. The very cool Tilde debugger makes the following modifications to the Lua core in order to make the debugger more usable: * A hook to catch errors, allowing the debugger to break at the point of
- 347. Re: Numerical constants (score: 35)
- Author: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 24 May 2007 09:47:34 -0300
- Here is a token filter written in C that expands constants from a table. For simplicity, I've used a global table named _CONSTANTS. --lhf /* * proxy.c * lexer proxy for Lua parser -- implements cons
- 348. Re: Extensible infix operators (score: 35)
- Author: Fabien <fleutot+lua@...>
- Date: Thu, 30 Nov 2006 21:18:38 +0100
- However at a formal (rather than implementation) level would using an unadorned token really cause ambiguities? It would be neater without a special syntax and it should surely be possible to disambi
- 349. Re: ldb (score: 35)
- Author: tomas@...
- Date: Sat, 8 Jul 2000 00:03:57 -0300 (EST)
- You can set a line hook that checks for the specific line you want to break. Something like: setlinehook (function (line) if line == <line> then <do something> end end) But this will not let you mak
- 350. [ANN] A catcode patch (score: 34)
- Author: Dirk Laurie <dpl@...>
- Date: Tue, 24 May 2011 11:46:34 +0200
- In Lua, many special characters are idle, e.g. !, ?, @ etc. Lua 5.2 makes it easy to bring these characters into the syntax as alphabetic or space characters via the table in lctype.c. Things become
- 351. Re: upcoming changes in Lua 5.2 (score: 34)
- Author: "Alex Davies" <alex.mania@...>
- Date: Tue, 26 Feb 2008 23:51:29 +0900
- Though, adding a continue would bring discussions about adding continue N and break N (for exiting/continuing Nth nested loop above) -- features for which I vigorously against. :) Alexander. Althoug
- 352. Operator override and RE: Metatables for primitives performance? (score: 34)
- Author: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Fri, 24 Mar 2006 15:03:16 -0500
- Hi list, I've had recently a problem in tht same category than that of Paul and was about to ask you when I've seen his mail (see copy below). I was porting an old C++/Java school project to Lua, and
- 353. A bit more fft. Was Re: Ambiguous Syntax (was Re: Free format strings?) (score: 34)
- Author: RLake@...
- Date: Tue, 14 Jan 2003 16:23:29 -0500
- That's a shame, sort of syntactically. This has always puzzled me. Under what circumstances would you want to put a statement after return or break? It could not possibly be executed, and I'm quite
- 354. Re: Readline patch? (score: 34)
- Author: Reuben Thomas <rrt1001@...>
- Date: Mon, 12 Feb 2001 12:23:36 +0000 (GMT)
- Woops. I hadn't yet seen the "official" version. So to atone, here's a better patch: first, I call using_history, which I forgot before, secondly, the lines you type are only entered into the history
- 355. Re: Readline patch? (score: 34)
- Author: Reuben Thomas <rrt1001@...>
- Date: Mon, 12 Feb 2001 11:49:37 +0000 (GMT)
- Yes, I've done this. Here's the diff (-u): -- lua/src/lua/lua.c Fri Oct 20 17:36:32 2000 +++ ../lua-4.0/src/lua/lua.c Tue Jan 30 11:13:00 2001 @@ -10,6 +10,9 @@ include <stdlib.h> include <string.h>
- 356. Re: labels (score: 34)
- Author: "Terence Martin" <odat@...>
- Date: Fri, 16 Jun 2000 19:30:13 -0700
- Personally I find break (and it's younger brother continue) rather handy in certain situations (though apparently some people seem to think that kind of hackish or something). I'd love to see break r
- 357. Re: Breaking out of a function loop when querying a database that returns multiple rows of data (score: 33)
- Author: Jonathan Hunter <jhunter@...>
- Date: Tue, 22 Sep 2015 13:45:17 +0100
- Hi Tomas, Thank you and the other guys so much, that works a treat!! Many thanks guys :) Jon ation of the loop. Syntax of each row is: { ["column_name_1"] = "value_1", ["column_name_2"] = "value_
- 358. Re: Breaking out of a function loop when querying a database that returns multiple rows of data (score: 33)
- Author: tomas <tomas@...>
- Date: Tue, 22 Sep 2015 07:05:11 -0300
- Hi Jonathan I checked the docs at: https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference There I found that: -- dbh:query("query", function()) takes the query as a string and an opti
- 359. 3rd UPDATE: try-catch-finally for Lua, 02/1/2008 (score: 33)
- Author: "Hu Qiwei" <huqiwei@...>
- Date: Fri, 1 Feb 2008 11:43:18 +0800
- The attachment is the ver.3 of try-catch-finally patch for lua 5.1.3. I will not release it to "Power Patches" section because it still needs to be improved. Syntax of try-catch-finally please refer
- 360. Re: Calling a function in a table from C++ without loosing 'self' (score: 33)
- Author: Shannon Stewman <stew@...>
- Date: Thu, 9 Jun 2005 13:37:35 -0500
- This is my homegrown version. char* value_description( lua_State* L, int j, char* buf, int size ) { int typ,len; char* ret; const char* value; // make a copy to tostring/tonumber functions don't chan
Search by
Namazu v2.0.21