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.

221. Re:Re: How to register lpeg.so to Lua ? (score: 27)
Author: leeya <leeyacn@...>
Date: Fri, 5 Mar 2010 19:03:59 +0800 (CST)
Hi Steve, Many thanks for your reply. It worked by the approach that I put lpeg.so in the same directory with Lua, then start lua with lpeg load: bin: lua -llpeg Lua 5.1.4 Copyright (C) 1994-2008 Lua
222. Re: Possible language extension: colon-notation in an expression as shorthand for instance-specific method (score: 27)
Author: junk <junk@...>
Date: Tue, 27 Jan 2009 03:37:29 -0500
A minor correction: local foo = { bar = function(self, meh) return self.x .. meh end, x = "hey " } local foosmethod = foo:bar print(foosmethod("dude")) -- >> "hey dude" foo = nil print(foosmethod("du
223. RE: International support in Lua (score: 27)
Author: Tony Finch <dot@...>
Date: Thu, 14 Jun 2007 09:39:31 +0100
Gnu gettext does exactly this. What the original poster is asking for is to have hooks in the Lua core that support this functionality. Tony. -- f.a.n.finch <dot@dotat.at> http://dotat.at/ SOUTH FITZ
224. RE: International support in Lua (score: 27)
Author: Patrick Donnelly <batrick@...>
Date: Wed, 13 Jun 2007 18:33:30 -0600
I think you could solve your problem in one of two ways. One of which was adopted (and probably not for the first time) by World of Warcraft. Make a couple files, each for their respective nationalit
225. LUTask (was Re: LuaSocket, LTN12 and coroutines: how to? (long post)) long as well... (score: 27)
Author: PA <petite.abeille@...>
Date: Sun, 30 Jan 2005 01:57:16 +0100
PS I struggle with co-routines. Doesn't everyone? :o) Well, here we go again, my first foolish attempt to make sense of this new Wonderland. I really do feel like Alice though. Or was it Dorothy? On
226. Re: Problem using lua 5.0 (score: 27)
Author: Vadim <sh-vadim@...>
Date: Thu, 6 Nov 2003 15:31:07 +0200
Hello Chris, The code I use for the wrapper looks like: lua_State *L = lua_open(); luaopen_base(L); luaopen_table(L); luaopen_io(L); luaopen_string(L); luaopen_math(L); luaopen_debug(L); luaopen_load
227. Problem using lua 5.0 (score: 27)
Author: chris@...
Date: Thu, 06 Nov 2003 14:06:48 +0100
Hi there, I'm trying to reuse/redo a simple C++/LUA wrapper I wrote with Lua 4.0 My first problem is to be able to load and run a test script I've replaced the old dofile with : res=luaL_loadfile(m_l
228. Re: Multi-indexed tables (score: 26)
Author: Philippe Verdy <verdy_p@...>
Date: Sun, 9 Dec 2018 19:46:26 +0100
In fact it could as well be iumplemented as syntaxic sugar:   t[1,2] being equivalent to t[1][2] (i.e. using tables of tables) But what you propose is to extend the keys using table values, i.e.   t[
229. Re: Sharing userdata among stats. (score: 26)
Author: Laurent FAILLIE <l_faillie@...>
Date: Wed, 28 Jun 2017 21:34:35 +0000 (UTC)
Hum, another thing strange. I tested the following code local q3 = SelFIFO.Find("myFifo") local mt = getmetatable(q3) print('-- mt --') for k,v in pairs(mt) do print(k,v) end print('-- index --') pri
230. LPEG for dummies (score: 25)
Author: Dirk Laurie <dirk.laurie@...>
Date: Wed, 1 May 2013 14:36:12 +0200
Brief introduction to LPEG Some LPEG functions Advanced topics Pattern constructors Pattern methods I've written the attached. Any comments that will lead to the last sentence in it becoming less pai
231. Re: 5.2 and 5.1 (score: 25)
Author: Dirk Laurie <dirk.laurie@...>
Date: Tue, 16 Apr 2013 21:06:57 +0200
2013/4/16 Hisham <h@hisham.hm>: Well, as long as you grant me a working 'require' or 'dofile', and also 'pairs', I can do that. $ lua Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio stdin:1: attem
232. Re: 5.2 _ENV garbage collection question (score: 25)
Author: Gaspard Bucher <gaspard@...>
Date: Mon, 27 Jun 2011 16:21:58 +0200
That would be because when a chunk is loaded, it is assigned as its environment the value require"debug".getregistry()[2]. The environment for your first chunk was from here, so unless changed, your
233. Re: simplest way to trap error in lua? (score: 25)
Author: "Matthew Armstrong" <turkeypotpie@...>
Date: Thu, 25 Jan 2007 12:19:58 -0800
Is there any significant performance overhead when running in protected mode? On 1/24/07, Matthew Armstrong < turkeypotpie@gmail.com> wrote: Cool, thank you so much. The response time on this mailing
234. Re: simplest way to trap error in lua? (score: 25)
Author: "Matthew Armstrong" <turkeypotpie@...>
Date: Wed, 24 Jan 2007 22:00:25 -0800
Cool, thank you so much. The response time on this mailing list is insane :P On 1/24/07, Rici Lake <lua@ricilake.net stdin:2: in function <stdin:1> [C]: in function 'xpcall' stdin:1: in main chunk [C
235. Re: simplest way to trap error in lua? (score: 25)
Author: Rici Lake <lua@...>
Date: Thu, 25 Jan 2007 00:54:09 -0500
Giving a simple example: function f1()     local ohNoImNil = nil     ohNoImNil() end function f2()     f1() end f2() What's the easiest way to trap the nil call and dump the stack? easiest within lu
236. A quirk in Lua 5.0-work0 (score: 25)
Author: Philippe Lhoste <PhiLho@...>
Date: Mon, 22 Jul 2002 19:35:29 +0200 (MEST)
I made the following incorrect test script for Lua 4.0: v = getenv("TestVar") if v then f = openfile("GetEnv.txt") write(f, v) closefile(f) end I accidently ran it with Lua 5.0. I believe the compati
237. Re: heap-buffer-overflow in luaH_getshortstr (score: 24)
Author: K? Mykolas <kamicc@...>
Date: Wed, 6 Apr 2022 15:15:15 +0300
Mhm, can reproduce the segfault on the original example provided on default Lua 5.4.4 build, using gcc 7.5.0. Even thought, on valgrind it reports only this: ./src/lua: ../poc:2: attempt to index a n
238. Re: table indexing (score: 24)
Author: Jonathan Goble <jcgoble3@...>
Date: Mon, 17 Oct 2016 05:46:34 -0400
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(
239. Re: Installing Orbit and its requirements (score: 24)
Author: Ryan Pusztai <rpusztai@...>
Date: Sat, 26 Sep 2015 10:10:54 -0400
Orbit only supports Lua 5.1. Hope this helps. -- Regards, Ryan Sent from my phone On Sep 26, 2015 9:38 AM, "luciano de souza" <luchyanus@gmail.com> wrote: Hello all, I tried to run an example of Orbi
240. Installing Orbit and its requirements (score: 24)
Author: luciano de souza <luchyanus@...>
Date: Sat, 26 Sep 2015 10:37:52 -0300
Hello all, I tried to run an example of Orbit application. I have a very short knowledge about web servers, so I try to follow the tips I have found. First of all, I have installed everything: $ sudo

Search by Namazu v2.0.21