Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 61. writeable upvalues (score: 178)
- Author: Edgar Toernig <froese@...>
- Date: Wed, 12 Apr 2000 00:10:57 +0200
- Hi, in a previous mail I talked about allowing assignments to upvalues. Attached is a patch that does this. It goes even further: the '%' character to introduce upvalues is removed as is the limitati
- 62. Re: Thoughts on optional commas (a simple way to save some commas) (score: 177)
- Author: Wolfgang Pupp <wolfgang.pupp@...>
- Date: Thu, 8 Mar 2012 00:29:21 +0100
- Indeed... It's probably easier to only allow omitting commas in between consecutive "Name = exp"- fields. This is much more common than '[' exp ']' = exp anyway. Lua-synax: Only one rule needs to be
- 63. Re: proposal: state machine syntax also usable for continue / nested break (score: 174)
- Author: Enrico Colombini <erix@...>
- Date: Fri, 28 Jan 2011 17:37:29 +0100
- (I am joking, but it would actually fit quite well with the current proposal. break (n) :label1: :label2: anyone?) Well, if break accepts a string... :-) local somewhere = getRandomDestination() brea
- 64. Re: Named loops and blocks for use with break (score: 174)
- Author: Rici Lake <lua@...>
- Date: Thu, 6 Oct 2005 23:09:08 -0500
- with them. I'd prefer 'break when' and 'continue when'. The 'when' keyword could then be used to support a 'case' statement implementation. And now we're off on another grand exploration! Well, ok,
- 65. gc confusion (score: 168)
- Author: Juergen Fuhrmann <fuhrmann@...>
- Date: Wed, 19 Feb 2003 12:26:01 +0100 (MET)
- Hi, folks, What is bug, what is feature ? When userdata is garbage collected if I call Lua from C ? I call it this way: --8<-- static void my_core(MyData *my) { printf("my %s: <my_core>\n",my->name);
- 66. Conway's Life - a coffee break puzzler (score: 168)
- Author: Dave Bollinger <DBollinger@...>
- Date: Thu, 9 Dec 1999 22:01:36 -0500
- Here's a tiny challenge for those interested. Attached at the bottom is a quick implementation of Conway's game of life in Lua, an algorithm which should be widely-enough recognized and well-enough d
- 67. Re: proposal: state machine syntax also usable for continue / nested break (score: 164)
- Author: Javier Guerra Giraldez <javier@...>
- Date: Tue, 1 Feb 2011 21:40:08 -0500
- As on any intrincate theme, and one so dear to us all, i agree on some points and disagree on others :-) agree, these are more pragmatic than clean: - weak types (automatic strings and numbers conver
- 68. Re: proposal: state machine syntax also usable for continue / nested break (score: 164)
- Author: Axel Kittenberger <axkibe@...>
- Date: Tue, 1 Feb 2011 13:45:31 +0100
- I gave a lot of thought into this, and I said no, you cannot put "extreme cleanliness" as replacement in there. Lua is much to pragmatic for that. Lua's adjectives are: small and fast. And thats it,
- 69. Re: proposal: state machine syntax also usable for continue / nested break (score: 164)
- Author: Paul Hudson <phudson@...>
- Date: Fri, 28 Jan 2011 16:20:44 +0000
- In Lua, we favor generic and powerful constructs. Actually, a 'goto' would be almost perfect. Can we have computed go to? http://en.wikipedia.org/wiki/Goto#Computed_GOTO (I am joking, but it would a
- 70. luac.c break with StkId -> StkIdRel change (score: 160)
- Author: Olexa Bilaniuk <obilaniu@...>
- Date: Fri, 11 Nov 2022 02:02:42 -0500
- Hi! I'd like to report that the public luac.c (with the previously-floated patch f->lineinfo=NULL applied) now fails to compile on the recently-pushed update to lua core that turned most StkId into S
- 71. Re: proposal: state machine syntax also usable for continue / nested break (score: 160)
- Author: Miles Bader <miles@...>
- Date: Sat, 29 Jan 2011 21:39:09 +0900
- ... which brings to mind "named let" (from scheme) -- that'd be one answer to the calls for continue... :] -miles -- Accordion, n. An instrument in harmony with the sentiments of an assassin.
- 72. Re: proposal: state machine syntax also usable for continue / nested break (score: 160)
- Author: Tony Finch <dot@...>
- Date: Fri, 28 Jan 2011 19:42:44 +0000
- Remember lambda is the ultimate goto. In Lua, instead of `goto x`, we write `return x()`. Computed goto can be written `return t[i]()`. Tony. -- f.anthony.n.finch <dot@dotat.at> http://dotat.at/ HUMB
- 73. Re: Lua 5.1.3 bug in string.byte (score: 159)
- Author: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 5 Jun 2008 14:01:37 -0300
- We tried to clean this for 5.2. The idea is to use size_t consistently in all places, except in posrelat, that now gets a ptrdiff_t and returns a size_t. It should work for any index with an absolut
- 74. Re: PATCH: fixes bug with calling garbage collector from custom lua_Alloc (score: 154)
- Author: "Robert G. Jakabosky" <bobby@...>
- Date: Wed, 7 May 2008 18:49:35 -0700
- Updated patch attached 'emergency_gc-5.1.3.patch'. I fixed a few bug with doing a step collection from the allocator instead of a full collection. Also the attached 'lua_memlimit.c' program has suppo
- 75. Re: [ANN] Lua 5.4.0 (rc1) now available (score: 149)
- Author: François Perrad <francois.perrad@...>
- Date: Sun, 19 Apr 2020 09:31:34 +0200
- Le mer. 15 avr. 2020 à 15:45, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> a écrit : Lua 5.4.0 (rc1) is now available for testing at http://www.lua.org/work/lua-5.4.0-rc1.tar.gz The c
- 76. RE: Lua flex and bison specifications (# 2) (score: 149)
- Author: "Zulfiqar Malik" <zulfiqar.malik@...>
- Date: Fri, 9 Dec 2005 16:18:10 +0500
- Hanks a lot carlos. That really helped. -Zul This version does a better job with: 1) new style long comments and strings 2) #! -- File: lua.l -- /* * lua.l - flex lexer for Lua 5.1 * flex -Bs8 -Cem -
- 77. Re: Lua flex and bison specifications (# 2) (score: 149)
- Author: Carlos Smith <carlos.smith@...>
- Date: Thu, 08 Dec 2005 11:20:21 -0500
- This version does a better job with: 1) new style long comments and strings 2) #! -- File: lua.l -- /* * lua.l - flex lexer for Lua 5.1 * flex -Bs8 -Cem -oylex.c lua.l * cl -MD -Ox -DYYMAIN ylex.c -l
- 78. Re: [ANNOUNCE] lua2c, convert Lua code into C (score: 144)
- Author: Russ Webb <Russell.Webb@...>
- Date: Thu, 24 Jan 2002 11:59:28 -0800
- Wow. Here's what I tried: [rwebb@collective lua2c]$ more test.lua if g[t] then return g[t] else return 4*4 end g.xxx = sqrt(4) [rwebb@collective lua2c]$ ../luac -p -l test.lua | ../lua lua2c.lua lua_
- 79. Re: dofile, loadfile, loadstring in a coroutine (score: 141)
- Author: lists@...
- Date: Sat, 21 Apr 2007 21:40:51 -0400 (EDT)
- Perhaps you should try: print ("f()", f, xpcall(f, debug.traceback)) f = loadstring("print('hello')") print ("f()", f, xpcall(f, debug.traceback)) i.e. no error, but no print('hello') either. The onl
- 80. Re: dofile, loadfile, loadstring in a coroutine (score: 141)
- Author: lists@...
- Date: Sat, 21 Apr 2007 21:39:36 -0400 (EDT)
- Perhaps you should try: print ("f()", f, xpcall(f, debug.traceback)) f = loadstring("print('hello')") print ("f()", f, xpcall(f, debug.traceback)) i.e. no error, but no print('hello') either. The onl
Search by
Namazu v2.0.21