Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 161. RE: parser (score: 74)
- Author: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 2 Jun 2000 15:14:06 -0300 (EST)
- The program below reuses Lua's lexer. It "compress" Lua source code, removing comments and multiple blanks, but preserves line breaks. This particular application is not really important (we just ne
- 162. Re: Apache Portable Runtime (score: 73)
- Author: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 14 Mar 2007 09:47:50 -0300
- This is implemented in the version of lposix that I've posted here. Here is the relevant code: typedef void (*Selector)(lua_State *L, int i, const void *data); static int doselection(lua_State *L, i
- 163. Re: Pushing custom-type elements into the stack. (score: 72)
- Author: L-28C <kixdemp@...>
- Date: Thu, 16 Aug 2007 22:19:02 -0400
- Assuming I could buy it, does it cover toLua? I use that like, all the time. It's not in the ToC, but maybe it's hidden somewhere? Will one of you peoples buy it for me? I'll send you the money (plus
- 164. Re: Pushing custom-type elements into the stack. (score: 72)
- Author: L-28C <kixdemp@...>
- Date: Thu, 16 Aug 2007 22:10:40 -0400
- AGAGAGAGA!! Amazon doesn't accept PayPal and I don't know where my card is. :-@ Will one of you peoples buy it for me? I'll send you the money (plus a little gratitude ;-) ) through PayPal. Nah, you
- 165. Re: Pushing custom-type elements into the stack. (score: 72)
- Author: "Wesley Smith" <wesley.hoke@...>
- Date: Thu, 16 Aug 2007 18:26:44 -0700
- I've been writing Lua and Lua from C code about everyday for a year now and I still find PiL invaluable. Just yesterday in fact I looked up how to write an 'ipairs' like function from C using userdat
- 166. Re: Pushing custom-type elements into the stack. (score: 72)
- Author: L-28C <kixdemp@...>
- Date: Thu, 16 Aug 2007 21:08:02 -0400
- I've been reluctant to buy that because I thought it only covered the basics of Lua coding, like, not the C API... But now that you say it does, I have some questions: 1) What does it cover the most?
- 167. Re: Pushing custom-type elements into the stack. (score: 72)
- Author: "Wesley Smith" <wesley.hoke@...>
- Date: Thu, 16 Aug 2007 17:48:02 -0700
- Sorry about that. Seems the code I posted has a mixture of styles in it. One uses printf to print to stdout, the other prints to wherever Lua's print() goes to which is different for me sometimes. Do
- 168. Re: Pushing custom-type elements into the stack. (score: 72)
- Author: "Wesley Smith" <wesley.hoke@...>
- Date: Thu, 16 Aug 2007 17:46:46 -0700
- I would highly recommend picking up programming in Lua. It has all kind of stuff in there like this. You will learn Lua much faster! int stackDump(lua_State *L) { int i; int top = lua_gettop(L); pri
- 169. Re: LPEG strange code (score: 71)
- Author: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 10 Jan 2018 06:52:31 -0200
- I don't think the case you describe can occur: 1) addtonewktable will call mergektable with a tree at the top of the stack that has a new ktable (due to the call to newktable). 2) mergektable will c
- 170. RE: Bug report in length of simple table (score: 71)
- Author: <Tomas.Lavicka@...>
- Date: Wed, 14 Sep 2016 07:37:07 +0000
- It behaves the way it does for efficiency. The length algorithm, as I understand it (from previous explanations on this list), does not and should not check every key-value pair in the table, as you
- 171. Re: Bug report in length of simple table (score: 71)
- Author: Jonathan Goble <jcgoble3@...>
- Date: Wed, 14 Sep 2016 03:05:34 -0400
- It behaves the way it does for efficiency. The length algorithm, as I understand it (from previous explanations on this list), does not and should not check every key-value pair in the table, as you
- 172. Re: stackoverflow with LuaJIT 2.0.0-beta6 (but not with lua 5.1.4) (score: 71)
- Author: Geoff Leyland <geoff_leyland@...>
- Date: Thu, 21 Apr 2011 11:57:38 +1200
- You still have a table.concat at every level of the stack. Try the following. I've only made it work for the case you test, so you'll need to finish it. local gen = ("a"):rep(v) ??? function encode_t
- 173. Re[2]: why no "continue" statement for loops? (score: 71)
- Author: lb@...
- Date: Wed, 18 Jun 2003 10:28:29 +0200
- Programming would be sometimes easier if it was a possibility to break or continue any of a few nested loops. For example: a = 0 while a < 10 do a = a + 1 if a == 5 then continue end b = 0 while b <
- 174. Re: XML (was: Re: Lua 4.0 and loadlib) (score: 71)
- Author: "Martin Spernau" <martin@...>
- Date: Fri, 23 Nov 2001 16:24:53 +0100
- Hello! I have compiled some of this info into the lua-users wiki: http://lua-users.org/wiki/LuaXml if someone has objections or (better) improvements, please edit! -Martin Of course, but don't hold y
- 175. XML (was: Re: Lua 4.0 and loadlib) (score: 71)
- Author: Philippe Lhoste <PhiLho@...>
- Date: Thu, 22 Nov 2001 14:27:29 +0100 (MET)
- Of course, but don't hold your breath :-) Yes. Being able to call functions directly from Lua is useful and fast. For example, for Windows programming, one can't imagine mapping all API functions to
- 176. Loop optimization for pairs and ipairs (score: 69)
- Author: Xmilia Hermit <xmilia.hermit@...>
- Date: Tue, 7 Jun 2022 20:26:55 +0200
- Hi, I want to share a patch to optimize for-in loops for the pairs and ipairs case. It is inspired by LuaJITs ITERN optimization and a similar optimization in Luau. It works by checking in the OP_TFO
- 177. nil as lvalue (was Re: Proposal: Trailing comma in function calls) (score: 69)
- Author: Tom N Harris <telliamed@...>
- Date: Thu, 05 Jun 2014 05:26:46 -0400
- Actually, I can't say I know that rule. But ignorance of the law is not an excuse. In any case, I hacked a bit and got this to (seemingly) work a,nil,c = foo() nil in a `local` declaration list is go
- 178. Re: Wanted: Lua source code cruncher (score: 69)
- Author: Tony Finch <dot@...>
- Date: Sun, 9 Mar 2008 21:53:58 +0000
- Compile it with luac -s and compress the result. I've attached some utility code for loading Lua chunks (source or compiled, since Lua doesn't care) that have been compressed in zlib or gzip format.
- 179. Re: Loading bytecode in require() (score: 67)
- Author: Tom N Harris <whoopdedo@...>
- Date: Sun, 19 Jul 2015 15:15:59 -0400
- As was mentioned, you can put a custom function in package.searchers that will reject untrusted files. The third and fourth default searcher handles native libraries, so to reject those just set `pac
- 180. Re: LPeg support for utf-8 (score: 67)
- Author: Tony Finch <dot@...>
- Date: Fri, 8 Apr 2011 17:54:11 +0100
- Try the attached patch (with versions for 5.1 and 5.2). Tony. -- f.anthony.n.finch <dot@dotat.at> http://dotat.at/ Humber, Thames: Variable 3 or 4. Slight or moderate. Fair. Moderate or good, occasio
Search by
Namazu v2.0.21