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.

201. Re: table indexing (score: 28)
Author: Hur Butun <hurbutun@...>
Date: Mon, 17 Oct 2016 13:15:40 +0200
No, `myElec` is an instance of the `PhysValue` class. That instance does not contain the fields you are looking for. In order to get the table with those fields, you must call the instance's `format
202. Re: Luasocket sample / static linking (score: 28)
Author: Jan-Pieter Jacobs <janpieter.jacobs@...>
Date: Thu, 10 Jun 2010 13:28:15 -0400
I know that MurgaLua[1] comes with Luasocket compiled in, and has a statically compiled version for linux, for windows: no idea whether it's statical or not, I'm not using windows that often. You can
203. Re: Tools for high level game AI (score: 28)
Author: Steven Johnson <temujin98007@...>
Date: Sun, 7 Sep 2008 06:46:24 -0700 (PDT)
Hi. Sorry about that. That was my quick comment about utility functions :). These are all basically just "saves typing" / "saves function / table creation" functions. It ought to be fine to use the f
204. question regarding the use of luaL_ref/luaL_unref to implement reference counting (score: 28)
Author: "Vijay Aswadhati" <wyseman@...>
Date: Tue, 15 Jul 2003 07:13:51 -0700
As they say the devil is in the details! As mentioned in a post few days back I have a working binding to an simple "C" library that is nothing but a lookup table. A sample code that illustrates the
205. Re: What wrong in this code? (score: 27)
Author: Jorge Eduardo de Araújo Oliveira <jorgeeduardoaoliveira@...>
Date: Mon, 15 May 2017 05:10:13 -0300
Wow! I'm sorry... The right code is it: function linearSearch(table,element) local position=0 while position<#table do if table[position]==element then return position else position=position+1 end en
206. Re: What wrong in this code? (score: 27)
Author: Sean Conner <sean@...>
Date: Mon, 15 May 2017 03:58:49 -0400
It was thus said that the Great Jorge Eduardo de Araújo Oliveira once stated: Problem 1: lua-53: y.lua:11: attempt to index a nil value (global 'is') stack traceback: y.lua:11: in main chunk [C]: in
207. Re: [ANN] AbsTK ? a widget toolkit for GUI and TUI applications (score: 27)
Author: Dr Eberhard Lisse <nospam@...>
Date: Fri, 12 May 2017 09:25:04 +0100
Pedro, I don't think libgirepository has anything to do with it, as I always had it, apparently :-)-O. But, the console seems to work now, so that's a first step, thanks. All the following fire up th
208. Re: [ANN] AbsTK ? a widget toolkit for GUI and TUI applications (score: 27)
Author: Pedro Alves Valentim <pedroalvesvalentim@...>
Date: Thu, 11 May 2017 10:50:55 -0700 (MST)
Wait. I didn't get it. Did you solve it with "libgirepository"? -- Both errors where due to the last patch's code. I didn't revise it carefully and am profoundly sorry about that. I just fixed and up
209. Re: [ANN] AbsTK ? a widget toolkit for GUI and TUI applications (score: 27)
Author: Dr Eberhard Lisse <nospam@...>
Date: Thu, 11 May 2017 11:15:23 +0100
Thanks everybody, but the fascination of this is that it can do curses AND gtk. I have gtk+3 and gobject-introspection installed from Homebrew as they are dependencies for stuff like gnumeric. I also
210. Re: Simulating Lua states in Lua with only 250 lines of code (score: 27)
Author: Sean Conner <sean@...>
Date: Tue, 23 Jun 2015 21:31:40 -0400
It was thus said that the Great Soni L. once stated: L1 = luaL_newstate(); L2 = luaL_newstate(); L1 and L2 are distinct global states. They each have their own GC and registry (among other things). T
211. Re: namespace blues (score: 27)
Author: "Pierre Chapuis" <catwell@...>
Date: Fri, 17 Apr 2015 11:33:49 +0200
You are in the Lua interpreter, every line is its own chunk (i.e. local variables are limited to the line they are defined on). You can work around it with a do/end block: Lua 5.2.4 Copyright (C) 19
212. Re: Bizarre behavior with debug.setupvalue() in Lua 5.3 (score: 27)
Author: Paul K <paul@...>
Date: Fri, 27 Mar 2015 21:15:02 +0000
Hi Sean, I get the same error in Lua 5.3 and Lua 5.2. Aren't you setting the first upvalue for meta.print (which is _ENV) to "meta", which replaces _ENV for your current code with "meta", which makes
213. Re: How can I be sure LuaJIT is working? (score: 27)
Author: Pico Gamo <picogamo@...>
Date: Fri, 21 Oct 2011 14:21:06 +0100
I'll start by linking to a page with my real name to disassociate myself from a person here mentioned in a rant post I read earlier today [ http://www.comp.dit.ie/aigroup/?page_id=201 ]. I can verify
214. Re: profiling embedded lua (score: 27)
Author: Oskar Forsslund <matrixsmurfen@...>
Date: Wed, 5 Oct 2011 14:41:09 +0200
Any reason why not? I didn't get it to work when i started with lua and now I have a non-rocks setup   Shouldn't you only link to one of lua51.lib and lua51.dll?  Is this a windows thing?  I guess t
215. Re: profiling embedded lua (score: 27)
Author: Oskar Forsslund <matrixsmurfen@...>
Date: Wed, 5 Oct 2011 10:17:30 +0200
Any reason why not? I didn't get it to work when i started with lua and now I have a non-rocks setup   Shouldn't you only link to one of lua51.lib and lua51.dll?  Is this a windows thing?  I guess t
216. Re: String indexing again (score: 27)
Author: HyperHacker <hyperhacker@...>
Date: Mon, 20 Dec 2010 14:03:58 -0700
That could be done with __newindex. It might also allow s[3] = 65 (assigning by character value instead of string). Regarding the question of whether s[n] should return a substring ('A') or a byte va
217. Re: String indexing again (score: 27)
Author: <jgiors@...>
Date: Mon, 20 Dec 2010 11:21:43 -0700
This is a good point. The behavior could be modified by changing __index to a function which generates an error when the index is a number (and otherwise falls back to the current behavior), but I'm
218. Upvalue corruption in lua ??? (score: 27)
Author: Flemming Madsen <lua@...>
Date: Fri, 10 Dec 2010 13:28:25 +0100
Unfortunately I don't see how else the following could happen. After all the 'send' method was looked up on the same "link" variable/object. As you can see I naively tried to remedy by adding "link"
219. RE: IUP 'TreeSetUserId' problem in Ubuntu (score: 27)
Author: "Antonio Scuri" <scuri@...>
Date: Mon, 10 May 2010 11:53:17 -0300
Hi, This is a bug. We already fixed it in CVS. As a temporary workaround before the next release, you can execute the following Lua code: iup.IUPTREEREFTABLE={} Anyway, thanks for reporting. Best, sc
220. IUP 'TreeSetUserId' problem in Ubuntu (score: 27)
Author: bhou <enstb.bhou@...>
Date: Mon, 10 May 2010 15:37:13 +0200
Hi, I have a program based on IUP under windows. It works very well. Recently, I installed ubuntu 10.04 in my laptop. But I found that the same program failed with an 'attempt to index a nil value' e

Search by Namazu v2.0.21