Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 21. Re: Lua pattern for a main chunk to leave a function on the stack (score: 2)
- Author: Andrew Gierth <andrew@...>
- Date: Sun, 14 Nov 2021 20:41:12 +0000
- Benjamin> Thank you; this is very helpful. Benjamin> I didn?t expect that a return statement from a main chunk Benjamin> would leave the returned value(s?) on the stack. To be precise, what's left o
- 22. Re: Install __newindex for _G in C (score: 2)
- Author: Flyer31 Test <flyer31@...>
- Date: Fri, 15 Oct 2021 00:36:58 +0200
- Hi Jonathan, thank you again, very helpful... . Concerning the last point: I would define my strbuf's like this (my naming convention for them now would be SB... and into _G I will put them as _sb_SB
- 23. Re: Install __newindex for _G in C (score: 2)
- Author: Jonathan Goble <jcgoble3@...>
- Date: Thu, 14 Oct 2021 16:51:56 -0400
- On Thu, Oct 14, 2021 at 4:33 PM Flyer31 Test <flyer31@googlemail.com> wrote: Thanks - no comment to lua_setmetatable and luaL_setmetatable - this really is awkward, but things like this sometimes hap
- 24. [FUN] Compress number in 2 bytes (score: 2)
- Author: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Fri, 2 Jul 2021 08:12:49 +0300
- Hi! This problem is just for fun. Below is a Lua 5.4 program that defines function censor() This function receives a single argument (a number) and raises an exception if the argument does not fit in
- 25. Re: About the Lua core (score: 4)
- Author: Jonathan Goble <jcgoble3@...>
- Date: Sun, 16 May 2021 04:33:48 -0400
- On Sun, May 16, 2021, 3:44 AM Stefan Ginsberg <stefan.ginsberg@gmail.com> wrote: So this allows for mixing statically linked instances with each other, as well as mixing shared linking with static li
- 26. Re: The Future of Computing and Programming Languages (score: 2)
- Author: Philippe Verdy <verdyp@...>
- Date: Sat, 24 Oct 2020 20:53:41 +0200
- An many companies are now turning from C/C++ to Rust for some of the reasons above, but more importantly because of serious security problems and the very huge difficulty to assess it correctly in C/
- 27. Re: Is there any circumstance that needs to invoke lua_newstate () to create two or more Lua states in a single C\C++ process? (score: 5)
- Author: JeanHeyd Meneide <phdofthehouse@...>
- Date: Fri, 23 Oct 2020 01:58:55 -0400
- Dear Sunshilong, Sandboxing in a single Lua State is achieved by overriding the "environment" in which a Lua function call is run. Since all scripts are just function calls, this applies to script lo
- 28. Re: Is there any circumstance that needs to invoke lua_newstate () to create two or more Lua states in a single C\C++ process? (score: 4)
- Author: ??? sunshilong <sunshilong369@...>
- Date: Wed, 21 Oct 2020 11:16:36 +0800
- Dear Derp: Thank you for your detailed explanation. I can't fully understand it. What is "sandboxing without hijacking tables'? Could you please explain that more in detail for me or suggest some doc
- 29. Re: Is there any circumstance that needs to invoke lua_newstate () to create two or more Lua states in a single C\C++ process? (score: 2)
- Author: JeanHeyd Meneide <phdofthehouse@...>
- Date: Tue, 20 Oct 2020 21:55:00 -0400
- Dear Sunshilong, Each Lua state is entirely self-contained, and therefore you can make 10s or even 100s of them in one C/C++ process. The common way to do multithreading with Lua is to create multipl
- 30. Re: The security of function load (+ some remarks on fuzzing) (score: 2)
- Author: nobody <nobody+lua-list@...>
- Date: Thu, 24 Sep 2020 13:40:04 +0200
- Specifically, you set the `mode` string to "t" instead of "bt". Note that several variants of the load* functions just don't take the mode argument and default it to NULL (effectively "bt"), which is
- 31. Re: Stack overflow in lsys_load (lua/loadlib.c:134) (score: 2)
- Author: Viacheslav Usov <via.usov@...>
- Date: Tue, 15 Sep 2020 14:59:21 +0200
- It is certainly true that this function can be used to cause a lot of harm even without the dlopen() issue. So trying to address this issue in the context of only loadlib() does not make much sense.
- 32. Re: <close> and os.exit() (score: 3)
- Author: Coda Highland <chighland@...>
- Date: Sat, 30 May 2020 15:05:56 -0500
- On Sat, May 30, 2020 at 3:02 PM Philippe Verdy <verdyp@gmail.com> wrote: As long as Lua is hosted in a standalone C program, there's no problem. But if Lua is to be embedded in other prgram that cann
- 33. Re: <close> and os.exit() (score: 3)
- Author: Philippe Verdy <verdyp@...>
- Date: Sat, 30 May 2020 22:01:31 +0200
- As long as Lua is hosted in a standalone C program, there's no problem. But if Lua is to be embedded in other prgram that cannot be terminated (e.g. inside a server app, where Lua scripts are used on
- 34. Re: Question on get/setmetatable() (score: 2)
- Author: Philippe Verdy <verdyp@...>
- Date: Wed, 27 May 2020 12:19:25 +0200
- Well, you ranted about how mw.whatever did bad formatting, I asked why didn't you use a formatter, you told you had, so I assume your problems where solved and your writings about mw being bad were
- 35. Re: Question on get/setmetatable() (score: 2)
- Author: Francisco Olarte <folarte@...>
- Date: Tue, 26 May 2020 22:17:15 +0200
- Philippe: Well, you ranted about how mw.whatever did bad formatting, I asked why didn't you use a formatter, you told you had, so I assume your problems where solved and your writings about mw being
- 36. Re: Question on get/setmetatable() (score: 2)
- Author: Philippe Verdy <verdyp@...>
- Date: Tue, 26 May 2020 21:54:03 +0200
- Thanks, now I know I just have to avoid Mediawiki to avoid having problems with the formatting, will do. Francisco Olarte.
- 37. Re: Question on get/setmetatable() (score: 3)
- Author: Philippe Verdy <verdyp@...>
- Date: Tue, 26 May 2020 21:08:37 +0200
- Then use it, problem solved, easy peasy. I have not got the slightest idea, and from what you have told me I do not want to have it, of what this mw thing is or does. And I'm certainly not going t
- 38. Re: Question on get/setmetatable() (score: 2)
- Author: Philippe Verdy <verdyp@...>
- Date: Mon, 25 May 2020 22:23:30 +0200
- I have no clue of what point you are trying to make here, or what you are replying to. Mine does not do it. ..... Seems you do not like that mw thingie. Why don't you just find another one that bett
- 39. Re: Question on get/setmetatable() (score: 2)
- Author: Philippe Verdy <verdyp@...>
- Date: Sun, 24 May 2020 13:22:33 +0200
- Oh, and did I say that I hate the notation forcing us to use [] for keys in table constructors ? - {[10]=11}, why not just {10=11} ??? - {['a string']='something'}, why not just {'a string'='somet
- 40. Re: Question on get/setmetatable() (score: 2)
- Author: Philippe Verdy <verdyp@...>
- Date: Sun, 24 May 2020 12:49:27 +0200
- This would work only if "__metatable" is added as a reserved keyword of the language and reserved as well as keys in tables (note that tables can even be keyed by empty string, only the nil key is sp
Search by
Namazu v2.0.21