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.

281. Re: Register Lua callback functions from within Lua to C++ (score: 20)
Author: Michael Bauroth <Michael.Bauroth@...>
Date: Mon, 10 Nov 2008 14:54:05 +0100
Ok, seems that the internal variable btn1 is from dedicated type: Button (002111C0), while the incoming variable has no type: userdata: 002111C0. That's why I can't call any function on it. But how c
282. Re: Register Lua callback functions from within Lua to C++ (score: 20)
Author: Michael Bauroth <Michael.Bauroth@...>
Date: Mon, 10 Nov 2008 14:46:50 +0100
Hi Jerome, thank you for your response. Your solution was also my first attempt. Unfortunately I receive an error while execution: \phone.lua:34: attempt to index local 'btn' (a userdata value) The p
283. RE: How to load buffer from C to the particular Lua namespace(table) (score: 20)
Author: virgil@... (Virgil Smith)
Date: Thu, 25 Sep 2003 10:14:00 -0500
Sorry I did not watch your stack sufficiently for you. The advice still stands however. Hopefully the following (commented) code section will help. // -- // Explanation of Notation: // S = X, Y // Me
284. RE: How to load buffer from C to the particular Lua namespace(table) (score: 20)
Author: virgil@... (Virgil Smith)
Date: Wed, 24 Sep 2003 16:44:43 -0500
Hey watch your stack! -- lua_newtable(luaVM); luaopen_string (luaVM); luaopen_math (luaVM); lua_pushstring(luaVM, "core"); lua_pushvalue(luaVM, -2); lua_settable(luaVM, LUA_GLOBALSINDEX); /* register
285. Re: How to load buffer from C to the particular Lua namespace(table) (score: 20)
Author: "Dmitriy Iassenev" <iassenev@...>
Date: Thu, 25 Sep 2003 00:16:30 +0300
But how can I "set up a metamethod __index that falls back to the globals"? And why this piece of code fails on lua_call(VM,0,0) with "attempt to call a table value" (I've just loaded string and mat
286. Awkward enough to comment: __call(t, ...) and self (score: 19)
Author: Andrew Starks <andrew.starks@...>
Date: Tue, 15 Apr 2014 16:07:10 -0500
I've run into this frequently enough to remember that I've run into it before, but not frequently enough to relegate it to an automatic pattern... The scenario is that I have an object that has defin
287. Re: Dealing With Errors in Lua (score: 19)
Author: Enrico Colombini <erix@...>
Date: Fri, 27 Sep 2013 20:50:58 +0200
I've given some thought to this matter in the past (definitely not as much as you did) and one of the ideas for a compatible solution was to prepend error strings with an unique numeric code, e.g.: =
288. Solved: io.stderr:write How? (score: 19)
Author: Hans van der Meer <H.vanderMeer@...>
Date: Sat, 1 Jan 2011 19:16:27 +0100
Thanks to those who reacted on the posting of the question below. They helped me to track down the misunderstanding in my original code. For the record I give the solution that worked for me in a mix
289. problem - Writing to SQLite3 from a form in a Lua Page (score: 19)
Author: JazCook <jazcook@...>
Date: Sat, 5 Sep 2009 09:26:32 -0700 (PDT)
Good day I am trying to learn Lua and friends. Trying to test a simple, little browser app, I took subset of test.lp (the one that comes with Kepler). It works fine as a form, returning POST values o
290. Re: LuaJIT performance query (score: 19)
Author: Mike Pall <mikelu-0806@...>
Date: Sun, 15 Jun 2008 20:49:56 +0200
Yielding from coroutines and caching of globals are orthogonal aspects. A coroutine switch changes the current thread pointer and with it the current Lua stack, that's it. This implicitly changes the
291. Re: [API] Calling a advanced library function (score: 19)
Author: Asko Kauppi <askok@...>
Date: Sun, 6 Jan 2008 02:09:21 +0200
One cannot use the dot notation as an index (an index could contain dots, so your code is looking for _G["vom.getloop"] ): lua_getglobal(L,"vom.getloop"); lua_checkstack( L, 1 ); lua_getglobal( L, "v
292. table.concat() with start and end indices has slight inconsistency (score: 19)
Author: Robert Raschke <rrlua@...>
Date: Wed, 5 Sep 2007 11:59:32 +0100
Hi, I've got bitten by a slight inconsistency when using table.concat() with start and end indexes. When providing just a start index, table.concat() will happily return an empty string if that index
293. Re: Strange meta __newindex behavior (score: 19)
Author: Rici Lake <lua@...>
Date: Sun, 25 Mar 2007 02:41:46 -0500
No, the second case is independent of the first. When I perform root.sub1.foo = bar, sub1 doesn't exist in the root yet After the line executes, it does, yet I never get called > for the new index ad
294. Re: Lua Table (score: 19)
Author: "Denis Lamarche" <brainwav@...>
Date: Mon, 06 Aug 2001 18:47:43 +0000
Thanks that was my problem. Hi, Aren't you getting a "attempt to index a nil value" error? The first index created automaticaly is 1, so that you should change the line to anim[1].time=300 Regards, D
295. Re: Lua Table (score: 19)
Author: Diego Fernandes Nehab <diego@...>
Date: Sun, 5 Aug 2001 19:47:45 -0300 (BRT)
Hi, Aren't you getting a "attempt to index a nil value" error? The first index created automaticaly is 1, so that you should change the line to anim[1].time=300 Regards, Diego.
296. Re: reply:Re: reply:Using fixed string buffers to avoid extensive allocs for small strings (score: 18)
Author: Flyer31 Test <flyer31@...>
Date: Thu, 14 Oct 2021 20:55:12 +0200
Hi Wendal, I got __newindex working now for _G nicely. But unfortunately ( I could have thought about this earlier I must admit), __newindex will be invoked only if a NEW global is defined ... so onl
297. Re: Lua 5.4.0-alpha-rc1 behavior with closing methods errors (score: 18)
Author: nobody <nobody+lua-list@...>
Date: Thu, 20 Jun 2019 15:33:13 +0200
[?] If the first error is reported I will never even know that there was a second error. And once I fixed the first error, I probably won't see that there is problem with my __close function. The sit
298. Upvalue order and _ENV (score: 18)
Author: Dennis Fischer <DarkWiiPlayer@...>
Date: Fri, 5 Oct 2018 08:32:50 +0000
For one of my projects I need to reliably change the environment of a function* While doing some experimenting to see how this could best be done in a way that works in both LuaJIT and 5.3, I came ac
299. Re: Fwd: HELP (score: 18)
Author: ? ?? <nerditation@...>
Date: Thu, 2 Mar 2017 13:14:27 +0000
? 2017/3/2 6:15, JM Venet Magic.fr ??: simple way using external commands: if you need the harddisk serial number, try this: -- local pipe = io.popen("wmic diskdrive get serialnumber") local result =
300. Fwd: HELP (score: 18)
Author: "JM Venet Magic.fr" <jmvenet@...>
Date: Wed, 1 Mar 2017 23:15:10 +0100
Hello, Yesterday,  I sent this message to have a little help of lua friends .. -- Hello, I need to retrieve HDD's infos in lua, and store them in variables. Does someone has an idea, especially the p

Search by Namazu v2.0.21