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.

161. Re: Unexpected behavior w/ LUA_ENVIRONINDEX in libevent binding (score: 39)
Author: "Thomas Harning Jr." <harningt@...>
Date: Sat, 9 Jun 2007 22:20:24 -0500
I decided to move to using callbacks and having Lua code do coroutine management... more flexible anyways. It also helps manage the lifetime of the coroutine, since I need to keep it in something to
162. Re: Installing Orbit and its requirements (score: 37)
Author: luciano de souza <luchyanus@...>
Date: Sat, 26 Sep 2015 13:21:04 -0300
I had already installed Xavante. As I didn't know how Orbit works, I imagined it internally called Xavante. So I imagined an embeded server. This things are still confused for me. I found a brief tip
163. Re: Installing Orbit and its requirements (score: 37)
Author: Ryan Pusztai <rpusztai@...>
Date: Sat, 26 Sep 2015 11:39:46 -0400
You need a web server. Just running the app doesn't work. You need to use apache2 (https://luanova.org/setting-orbit-to-use-apache2/) or Xavante (luarocks install wsapi-xavante). I highly recommend X
164. Re: Installing Orbit and its requirements (score: 37)
Author: luciano de souza <luchyanus@...>
Date: Sat, 26 Sep 2015 11:42:12 -0300
Coming back to Lua 5.1, the error disappear. But, I was not able to launch the script! It seems to be very close. No errors, but no results. Doing "$ lua app.lua" at the terminal, nothing is writen,
165. Re: require behavior in modules (score: 36)
Author: Milind Gupta <milind.gupta@...>
Date: Thu, 20 Aug 2015 11:33:53 -0700
In the first, "xml" is local. In the second, xml is converted, just like every non-local symbol, to _ENV['xml'].  And you just set _ENV to be an empty table. Such is the magic of _ENV. As for the ri
166. Re: require behavior in modules (score: 36)
Author: Parke <parke.nexus@...>
Date: Thu, 20 Aug 2015 11:15:00 -0700
In the first, "xml" is local. In the second, xml is converted, just like every non-local symbol, to _ENV['xml']. And you just set _ENV to be an empty table. Such is the magic of _ENV. As for the righ
167. require behavior in modules (score: 36)
Author: Milind Gupta <milind.gupta@...>
Date: Thu, 20 Aug 2015 11:03:03 -0700
In Lua 5.3 I see the following -- Module file begin xml = require("LuaXml") local xml = xml local M = {} package.loaded[...] = M _ENV = M -- Module code here xml.load("File.xml")  -- Module file end
168. Re: Newbe question on function environment (score: 36)
Author: Jose Torre-Bueno <jtorrebueno@...>
Date: Sun, 1 Apr 2012 07:13:02 -0700
I'm still curious about how closures are actually handled. Function parameters and function locals are not members of _ENV, I understand function parameters live on the stack and I assume space for f
169. Re: Possible enhancements for Lua 5.2 (score: 36)
Author: HyperHacker <hyperhacker@...>
Date: Mon, 27 Jun 2011 22:39:27 -0600
That only satisfies the first half of the request: nil stdin:1: attempt to index field 'y' (a nil value) and since it's not standard, it means potentially breaking or conflicting with modules that ex
170. Bug with load (score: 36)
Author: François Perrad <francois.perrad@...>
Date: Thu, 17 Feb 2011 11:58:00 +0100
The script below shows a difference of behaviour between LuaJIT and Lua 5.1.4 (or Lua 5.2.0 alpha). LuaJIT produces an error and it's a good behaviour (see with Mike Pall) At the first call, 'reader'
171. Re: Proposal for table length operator (score: 36)
Author: Keith Matthews <keith.l.matthews@...>
Date: Tue, 14 Dec 2010 09:08:51 -0500
(I believe you meant "the largest, 1000") Actually, table.remove will call lua_objlen() to get the table size (1000 under my proposal), and will remove it immediately. Under my proposal, removing th
172. Re: Lua life after integers (score: 35)
Author: Sean Conner <sean@...>
Date: Wed, 10 Dec 2014 12:32:32 -0500
It was thus said that the Great Andrew Starks once stated: To recap: in Lua 5.2, ipairs() will attempt to call __ipairs(), which should return an iterator function, self and an initial value; otherwi
173. Re: A question about table's length (score: 35)
Author: Vaughan McAlley <ockegheim@...>
Date: Tue, 29 Dec 2009 23:48:48 +1100
It allows for an efficient implementation of the # operator. What happens (I think) is that as positive indices are added to the table, Lua searches for any index where t[index] exists and t[index +
174. Re: lua debug info (score: 35)
Author: Andreas Stenius <kaos@...>
Date: Thu, 15 Dec 2005 20:40:04 +0100
[...] llimits.h lines 44, 46: changed type from int to long, since the comment says it might hold values that won't fit in 16 bits. Actually the comment was wrong :) It is safe to use 16-bit ints the
175. Re: Callables vs functions (score: 33)
Author: Andrew Starks <andrew.starks@...>
Date: Wed, 19 Nov 2014 23:25:36 -0600
This is something I've brought up before (and seems to fit in with the current int vs float discussion as well). In a lot of cases it's easy and convenient to use Duck Typing in Lua. You don't check
176. Condition of the lua_State in __gc handler after call to lua_close() ? (score: 33)
Author: Carsten Fuchs <CarstenFuchs@...>
Date: Wed, 09 Apr 2008 20:05:43 +0200
Dear list, when a call to lua_close() triggers calls to the the __gc handlers/callbacks, in what condition is the Lua state (given as the lua_State* parameter to the __gc handler) at that time? That
177. Re: Can lua_next() error? (score: 32)
Author: Viacheslav Usov <via.usov@...>
Date: Wed, 18 Apr 2018 18:29:57 +0200
On Wed, Apr 18, 2018 at 6:51 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote: > As in most C libraries, the Lua API functions do not check their arguments for validity or consistency. That makes perfec
178. [ANN] LuaMacro 2.3 (score: 32)
Author: steve donovan <steve.j.donovan@...>
Date: Sun, 3 Jul 2011 19:34:28 +0200
Hi all, This is a new version of LuaMacro, which is an LPeg-based lexical macro preprocessor for Lua. Main new features are - tracking line numbers (not _entirely_ flawlessly, but good enough for now
179. Re: Does anyone have "assert" blindness ? (score: 32)
Author: <jgiors@...>
Date: Thu, 10 Mar 2011 00:06:19 -0700
I don't know if this is the kind of thing that might help, but if you really want to check the return values every time, you can wrap the functions: --[] WARNING! THIS IS UNTESTED SAMPLE CODE! [1] -
180. Re: [ANN] LuaJIT-2.0.0-beta1 (score: 32)
Author: Steven Johnson <steve@...>
Date: Sun, 1 Nov 2009 03:36:57 -0600
I'm running into some issue with module() and / or environments. The attached file is a dump of the package table, just before an error gets thrown: "attempt to index global 'widgetops' (a nil value)

Search by Namazu v2.0.21