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.

341. Re: Problem with userdata (metatable) (score: 18)
Author: "Anders Bergh" <anders@...>
Date: Wed, 12 Apr 2006 16:00:56 +0200
I tried it, I still have the same problem. :( Anders
342. Re: Problem with userdata (metatable) (score: 18)
Author: "Goran Zoricic" <goran-gdalgs@...>
Date: Wed, 12 Apr 2006 15:56:33 +0200
I'm not a seasoned Lua veteran (yet ;) ), but shouldn't you use: lua_setmetatable(L, -2); instead of: ... lua_pushliteral(L, "__metatable"); lua_pushvalue(L, -3); lua_rawset(L, -3); ... Cheers, Goran
343. Problem with userdata (metatable) (score: 18)
Author: "Anders Bergh" <anders@...>
Date: Wed, 12 Apr 2006 15:25:04 +0200
Hi! I'm using Lua 5.1 and I've been trying to add my own userdata type. It works except I couldn't get methods working. I've been reading the chapter in the first edition of pil and http://lua-users.
344. calling lua functions from C which use libraries (score: 18)
Author: Tassilo von Parseval <tassilo.von.parseval@...>
Date: Mon, 14 Jun 2004 10:38:03 +0200
Hi everyone, I am currently working on an Inline::Lua module for Perl and I need some help on triggering lua functions from C when those functions make use of lua's shipped library. I did a rather th
345. Bugs.. ? (was: Re: Lua-users standard libraries project: anyone game?) (score: 18)
Author: Kaos <kaos@...>
Date: Wed, 28 Jan 2004 17:03:51 +0100
I'm running into some issues with the library code. So far it is: o std.bit.lua:12: attempt to index global `bit' (a nil value) o std.rex.lua:4: bad argument #1 to `setmetatable' (table expected, got
346. Re: Inline Functions (score: 18)
Author: "Peter Hill" <corwin@...>
Date: Fri, 27 Dec 2002 16:34:30 +0100
Peter Hill: Björn De Meyer: Eero Pajarre: I'm writing a Lua parser in Visual Basic so I'll try tinkering with the syntax in that first, and report back any suggestions / problems. Some syntax possibi
347. Re: Mysterious error when referencing functions (score: 18)
Author: dogusanh@...
Date: Thu, 23 May 2002 10:27:54 +0300
Hi, With changing two 'typo', it didn't give any error for me. I marked them with 'changed' in code. get or changed '.' to ':' changed 'reutrn' to 'return' http://explorer.msn.com/intl.asp.
348. Mysterious error when referencing functions (score: 18)
Author: "Sebastian Rasmussen" <sebras@...>
Date: Thu, 23 May 2002 08:30:58 +0200
Hi! I've have had some problems solving the error in the code below. I can't get gsub to accept a reference to a function local to the same object that the gsub-statement is enclosed in. self.replace
349. Lua crash at lua_getglobal() (score: 15)
Author: aman agrawal <aman.161089@...>
Date: Thu, 28 Oct 2021 22:55:51 +0530
Hi, Following program is crashing at lua_getglobal(). [Aman_freebsd114:/var/views/lua/lua-5.4.3/src]# cat test_global.c #include <lua.h>                                /* Always include this when cal
350. How to access library from folder when loaded in stand-alone interpreter (score: 15)
Author: christian govella <christian.govella@...>
Date: Tue, 10 Aug 2021 17:40:08 +0200
Hi, Lua stand-alone interpreter can be given option -l to require a library into the workspace. The interpreter help says -l name  require library 'name' into global 'name' I was trying to load a lib
351. Re: ctrace ? (score: 15)
Author: Rick Hedin <cubsno1@...>
Date: Sat, 25 May 2019 07:42:56 -0400
Hi, Luis.  (Sitting on a plane at the airport.) I used the 5.1 version of ctrace.  Lua is 5.1.4.  The only thing I changed was the location of the includes and the libraries in the make file. When I
352. Re: ctrace ? (score: 15)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Sat, 25 May 2019 08:01:21 -0300
I've just tested it and ctrace for Lua 5.2 works on Lua 5.1 just fine For Lua 5.3, you need to add these lines in ctrace.lua: ["lua_KContext"]="%p", ["lua_KFunction"]="%p", Which version of Lua and
353. ctrace ? (score: 15)
Author: Rick Hedin <cubsno1@...>
Date: Fri, 24 May 2019 18:09:07 -0400
Does the ctrace tool still work?  When I did make, I got:  cdx-dev:/home/rhedin/ctrace> make /usr/bin/lua ctrace.lua < /usr/include/lua.h /usr/bin/lua: ctrace.lua:86: attempt to index local 'o' (a ni
354. Re: Say No to global-by-default (score: 15)
Author: Sean Conner <sean@...>
Date: Wed, 4 Jul 2018 03:28:47 -0400
It was thus said that the Great Axel Kittenberger once stated: For this use case, I think it would be easier to do this: CONF = { host = "localhost", port = 8080, datadir = '/tmp', syslog = { id = 'm
355. Re: Upcoming changes in Lua 5.4 (score: 15)
Author: Dirk Laurie <dirk.laurie@...>
Date: Sun, 21 Jan 2018 07:07:56 +0200
I should add that it was deprecated in 5.1 and only works if the compatibility option is compiled in. The 'arg' table went out with Lua 5.0. 2018-01-21 7:02 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.c
356. Re: Upcoming changes in Lua 5.4 (score: 15)
Author: Dirk Laurie <dirk.laurie@...>
Date: Sun, 21 Jan 2018 07:02:50 +0200
2018-01-20 23:46 GMT+02:00 Sean Conner <sean@conman.org>: Hpw soon do we forget ... $ lua5.1 Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio 10 foo $ lua5.2 Lua 5.2.4 Copyright (C) 1994-2015 Lua.o
357. Re: does not compile (score: 15)
Author: José María Martínez García <josemar1992@...>
Date: Sun, 5 Nov 2017 19:00:57 +0100
Sorry the complete question The program: local rs232 = require "rs232" local p, e = rs232.port('ttyUSB0',{   baud         = '_57600';   data_bits    = '_8';   parity       = 'NONE';   stop_bits    =
358. Re: [ANN] AbsTK ? a widget toolkit for GUI and TUI applications (score: 15)
Author: Sean Conner <sean@...>
Date: Wed, 10 May 2017 13:46:31 -0400
It was thus said that the Great Dr Eberhard Lisse once stated: I submitted a patch last night to make the GTK bindings optional and it was accepted [1] (along with the patch to let it run under Lua 5
359. Re: [ANN] AbsTK ? a widget toolkit for GUI and TUI applications (score: 15)
Author: Dr Eberhard Lisse <nospam@...>
Date: Wed, 10 May 2017 11:20:48 +0100
Pedro, Pavel On a 5K iMac with MacOs 10.12.4 and Homebrew (from which I have installed Lua 5.2.4) updated to the latest I have installed abstk and it asked for lcurses and lgi, the latter of which re
360. Re: Colon notation in object-oriented programming (score: 15)
Author: Xavier Wang <weasley.wx@...>
Date: Sun, 05 Mar 2017 23:40:02 +0000
Sean Conner <sean@conman.org>?2017?3?6? ????6:25??? It was thus said that the Great Dirk Laurie once stated:   I tried that code and I got: lua: /tmp/xx.lua:3: attempt to index a nil value stack trac

Search by Namazu v2.0.21