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.

241. [Proposal?] Environment stacks (score: 24)
Author: "Thiago L." <fakedme@...>
Date: Sun, 30 Nov 2014 20:55:05 -0200
Idk if I consider this a proposal or not, but what if environments had stacks? For example, let's say we add a new keyword "setsenv" (set scope environment), and another one "getsenv" (get scope envi
242. Re: Awkward enough to comment: __call(t, ...) and self (score: 24)
Author: Andrew Starks <andrew.starks@...>
Date: Tue, 15 Apr 2014 16:25:15 -0500
I take most of this back.... Upon further inspection, "t" is the current table being called and when called with a colon, I'm getting the parent table. This is actually pretty awesome and useful. Sor
243. RE: C++ binding (score: 24)
Author: Timothée VERROUIL <dreamothee@...>
Date: Fri, 8 Apr 2011 09:18:45 +0000
Thanls a lot, but i get this error : PANIC: unprotected error in call to Lua API (attempt to index a string value), Here's my code : for each attribute I do the following : lua_pushstring(L, attribut
244. Re: Updated RVM patch against Lua5.1.4---needs review (score: 24)
Author: Jim Pryor <lists+lua@...>
Date: Sat, 12 Sep 2009 17:25:34 -0400
Here's an update. iFollowing a suggestion from Mike Pall, I changed the patch so that now it reverts, rather than tries to merge, the Attached now are _two_ patches against the original patch file: h
245. Re: Register Lua callback functions from within Lua to C++ (score: 24)
Author: "Peter Cawley" <lua@...>
Date: Mon, 10 Nov 2008 14:09:47 +0000
It depends on which Lua/C++ binding framework you're using, but I'd guess that a copy of the Lua-ized 'this' pointer will be at stack index 1, and so you could use lua_pushvalue(L, 1); to push a copy
246. Problems with creating a table from backend (score: 24)
Author: jdarling@...
Date: Thu, 13 Apr 2006 08:54:06 -0700
I can't believe I can't find a sample of this, but I'm having problems creating a table that contains "settings" for a method. Below is the code I've tried along with comments and the exception that
247. Re: Struggling with _ENV in Lua 5.2 (score: 23)
Author: Petite Abeille <petite.abeille@...>
Date: Fri, 11 Nov 2011 08:25:49 +0100
FWIW, works fine for me. Prints 30 as expected. So most likely something wrong with your build and/or how you execute your code. http://alt.textdrive.com/assets/public/non/nq050816.gif
248. Re: Error message running iupgl.wlua (score: 23)
Author: Frank Meier-Dörnberg <frank@...>
Date: Thu, 11 Sep 2008 22:36:56 +0200
Andrew Wilson schrieb: Hmm, Frank, that is odd, both iupgl.wlua & iupglcanvas.wlua work for me on Lua for Windows. Anyone else having problem with those examples??? Andrew 1st, let me say: Many thank
249. Re: Newbie install question: why does lua.eval() not work? (score: 23)
Author: "Julian Moore" <jlulian38@...>
Date: Thu, 5 Jul 2007 23:48:34 -0700
Lua doesn't have such a command. If you want to execute the contents of a string, you would do: assert(loadstring(...))() -- Thomas Harning Jr. You could do something like function eval(str) return a
250. Re: Newbie install question: why does lua.eval() not work? (score: 23)
Author: "Thomas Harning Jr." <harningt@...>
Date: Thu, 5 Jul 2007 01:25:35 -0400
lua.eval might be a command for elinks. Lua doesn't have such a command. If you want to execute the contents of a string, you would do: assert(loadstring(...))() get any form of eval working: Lua 5.0
251. Newbie install question: why does lua.eval() not work? (score: 23)
Author: "Kelly Jones" <kelly.terry.jones@...>
Date: Wed, 4 Jul 2007 20:44:51 -0600
I just installed Lua to script elinks (I recompiled elinks w/ Lua support). From the command-line, basic Lua expressions work fine, but I can't get any form of eval working: lua Lua 5.0 Copyright (C)
252. LuaSoap - require "luasocket" problems (score: 23)
Author: Paul Hudson <phudson1442@...>
Date: Thu, 26 Apr 2007 18:35:32 -0700 (PDT)
Hello everyone, I am trying to get LuaSoap (luasoap-1.0b.zip) working in Lua5.1. The first batch of errors trickled down to needing to recompile LuaExpat specifically for Lua5.1 and not compat-5.1. B
253. Re: Lua 5.4.0-rc5 segfault in low memory conditions (score: 22)
Author: Sergey Zakharchenko <doublef.mobile@...>
Date: Sat, 13 Jun 2020 20:06:11 +0400
Sergey Zakharchenko <doublef.mobile@gmail.com>: I know you're tired of my messages, but behold the ultimate test case for this particular (no longer sure it's one and the same bug throughout this thr
254. Re: Lua 5.4.0-alpha-rc1 behavior with closing methods errors (score: 22)
Author: David Heiko Kolf <david@...>
Date: Fri, 21 Jun 2019 20:38:45 +0200
Am 20.06.2019 um 15:33 schrieb nobody: Well, the way I learned it was that a cleanup routine just has one well-defined job and that is to release all resources still used by the object. So whatever h
255. Re: getmetatable-esque metamethod [Forked from:] metatables for strings? (score: 22)
Author: Dirk Laurie <dirk.laurie@...>
Date: Sun, 3 May 2015 22:38:45 +0200
2015-05-03 21:24 GMT+02:00 Andrew Starks <andrew.starks@trms.com>: It is trivial to sandbox a string's methods. -- $ lua Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio The quick brown fox stdin:1
256. Re: Multiple indexing (was: 'in' keyword today) (score: 22)
Author: Sean Conner <sean@...>
Date: Fri, 11 Apr 2014 01:59:42 -0400
It was thus said that the Great Thomas Jericke once stated: That's why I'm asking these questions, to clarify the concept. No ambiguity here. local t = {} -- table: 0x896b2b8 local table = { t = "lal
257. Re: file:write() fails silently for read-only files (score: 22)
Author: Josh Simmons <simmons.44@...>
Date: Tue, 6 Sep 2011 17:25:24 +1000
Lua's general policy is to throw errors when there's programmer error (like 'coroutine.wrap(7)', and return nil+error message for environmental issues (like files missing or bad permissions).
258. Why this error in table.sort()? (score: 22)
Author: Steve Litt <slitt@...>
Date: Fri, 4 Feb 2011 00:49:29 -0500
Hi all, For my presentation, I'm using table.sort(mytable, sortfcn), where mytable has only consecutive integer keys starting with 1, and each element consists of a table with named keys (fname, lnam
259. Re: what to make of this fellow named __ipairs? (score: 22)
Author: Tony Finch <dot@...>
Date: Thu, 27 Jan 2011 14:43:45 +0000
One of the significant oddities in Lua is the distinction between methods called using the : operator and metamethods called by the language runtime and some library functions. It is a scruffy mixtur
260. Re: String indexing again (score: 22)
Author: Axel Kittenberger <axkibe@...>
Date: Mon, 20 Dec 2010 14:56:14 +0100
Thank you, yes, IMHO writing the call explicitly instead of the ':' notatoin, demonstrates the mechanics nicely $ s = "AAA" $ return s["byte"](s, 1) 52

Search by Namazu v2.0.21