Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 121. Lua source (score: 117)
- Author: Fred Bertsch <fb@...>
- Date: Sat, 18 Mar 2000 10:57:45 -0500 (EST)
- If there is such a forum, I'll donate a linked list implementation. (It's included as an attachment.) It's implemented entirely in Lua, and the documentation is contained in comments at the beginning
- 122. Re: Comparing userdata with other types (score: 115)
- Author: delbu9c1@...
- Date: Sun, 31 May 2009 23:29:25 +0000
-
- 123. Re: Comparing userdata with other types (score: 111)
- Author: Ivo Beltchev <ivo@...>
- Date: Sun, 31 May 2009 20:17:08 -0700
- My metamethods only have a special behavior if the number is a very specific NAN value. There are billions of NANs, so the chance of this value occurring normally is negligible. And the special behav
- 124. Token filter (score: 106)
- Author: Thomas Lauer <thomas.lauer@...>
- Date: Thu, 31 May 2007 13:31:29 +0100
- I am having an interesting time with token filters but now I've run into a snag. I probably do something very stupid.... but I don't know what. I have a module token.lua that implements the simplest
- 125. Re: Comparing userdata with other types (score: 104)
- Author: Ivo Beltchev <ivo@...>
- Date: Sun, 31 May 2009 15:05:19 -0700
- I had some luck with using a NAN value with a metatable for numbers. So now I have: NIL+x -> NIL NIL[x] -> NIL NIL[x]=5 -> no error But I'm still having 2 problems: 1) NIL==NIL gives false. That's be
- 126. Re: (no subject) (score: 95)
- Author: Asko Kauppi <askok@...>
- Date: Tue, 24 Apr 2007 19:58:18 +0300
- You'll find about this at the archives: http://lua-users.org/cgi-bin/namazu.cgi?query=attempt+to+index+a+nil&sort=score&idxname=lua-l&max=20 John Hind kirjoitti 24.4.2007 kello 19:40: X = trunk.branc
- 127. Re: Problems with LuaSQLite3 on windows (score: 80)
- Author: Christian Bielert <cib123@...>
- Date: Thu, 28 Mar 2013 03:41:15 +0100
- I think you're right.. I had both open in separate tabs and got them confused. 2013/3/27 Gyepi SAM <self-lua@gyepi.com>:
- 128. Re: Problems with LuaSQLite3 on windows (score: 80)
- Author: Gyepi SAM <self-lua@...>
- Date: Tue, 26 Mar 2013 21:34:44 -0400
- I think there's been some confusion; I think you are using the sqlite driver from the Kepler project, but reading the documentation for the driver from http://lua.sqlite.org/index.cgi/index. If you c
- 129. Re: heap-buffer-overflow found in luaG_errormsg (score: 65)
- Author: Jinwei Dong <jwdong2000@...>
- Date: Sat, 21 May 2022 01:47:57 +0800
- Jinwei Dong wrote:<o:p></o:p> > I did some simple debugging by inserting 'printf()' into the following call > chain: > -- > luaG_runerror()->luaG_errormsg()->ccall()...luaG_runerror()->luaG_errormsg(
- 130. ??: heap-buffer-overflow found in luaG_errormsg (score: 65)
- Author: Jinwei Dong <jwdong2000@...>
- Date: Sat, 14 May 2022 15:47:59 +0800
- I did some simple debugging by inserting 'printf()' into the following call chain: -- luaG_runerror()->luaG_errormsg()->ccall()...luaG_runerror()->luaG_errormsg()->CRASH! -- <o:p> </o:p> And got this
- 131. Re: Newbe question on function environment (score: 61)
- Author: Peng Zhicheng <pengzhicheng1986@...>
- Date: Mon, 02 Apr 2012 02:01:53 +0800
- ? 2012-4-1 22:13, Jose Torre-Bueno ??: I'm still curious about how closures are actually handled. Function parameters and function locals are not members of _ENV, I understand function parameters liv
- 132. Re: Empty? No. Array? No. Has? Yes. (score: 59)
- Author: Andrew Starks <andrew.starks@...>
- Date: Thu, 4 Jul 2013 07:27:16 -0500
- That is basically the explicit/implicit (defined/undefined) nil approach, not the table-index-is-vararg approach. The former requires less changes to Lua as is, but introduces a new value which inhe
- 133. Re: new "empty" value/type in Lua? (score: 57)
- Author: Andrew Starks <andrew.starks@...>
- Date: Tue, 2 Jul 2013 23:31:40 -0500
- Here is where I should have picked up from... I think if you define __index as defaulting to returning nil on undefined values, then it is not messy, except for one glaring issue. There would need to
- 134. dostring that aborts on errors? (score: 56)
- Author: edrx@... (Eduardo Ochs)
- Date: Sat, 13 Oct 2001 17:21:15 -0300 (BRT)
- Hi list, How do I write a "non-trapping" version of the "dostring" function that will propagates errors instead of just returning a nil and an error string? The default behaviour is that this code lu
- 135. Re: A more flexible table.remove (score: 55)
- Author: Vaughan McAlley <vaughan@...>
- Date: Mon, 11 Jun 2018 10:10:24 +1000
- On Mon, 11 Jun 2018, 02:02 Soni "They/Them" L., <fakedme@gmail.com> wrote: table.remove has some unnecessary restrictions: the removed element. When pos is an integer between 1 and #list, it shifts d
- 136. A more flexible table.remove (score: 55)
- Author: "Soni \"They/Them\" L." <fakedme@...>
- Date: Sun, 10 Jun 2018 13:01:45 -0300
- table.remove has some unnecessary restrictions: the removed element. When pos is an integer between 1 and #list, it shifts down the elements list[pos+1], list[pos+2], ···, list[#list] and erases elem
- 137. Re: (no subject) Automagic tables (score: 54)
- Author: Doug Rogers <rogers@...>
- Date: Tue, 24 Apr 2007 15:18:10 -0400
- Or take a quick look at: http://lua-users.org/wiki/AutomagicTables Doug -- Innovative Concepts, Inc. www.innocon.com 703-893-2007 x220
- 138. Re: A proposal for the confusing pseudo table ? array concept (score: 52)
- Author: Advert Slaxxor <adv3r7@...>
- Date: Sat, 20 Jan 2018 02:15:10 +0000
- A table is a table. There is no such thing as a sequenced table. If you have: t = {1, 2, 3, 4} print(#t) -- 4 t.foo = 2 print(#t) -- 4 print(t[4]) -- 4 print(t.foo) -- 2 -- continuing for below: t[5]
- 139. Re: Why no for table-iterator like e. g. "hashpairs"? (score: 48)
- Author: Francisco Olarte <folarte@...>
- Date: Fri, 1 Nov 2019 17:47:48 +0100
- Tables in lua can not contain nil. This one of the things differentiating local variables and table "slots" ( globals are inside a table ). In fact, you assign nil to a table index to delete it. That
- 140. Re: Long chains of objects (aka tables) (score: 48)
- Author: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 18 May 2014 08:31:10 +0200
- 2014-05-17 18:38 GMT+02:00 Andrew Starks <andrew.starks@trms.com>: I can do this: Use `/` instead of `.`, but put `//` instead after the first field that must exist. It's possible in Lua 5.2 too, of
Search by
Namazu v2.0.21