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: [ break: 4996 ] [ n: 11587 ]

Total 1026 documents matching your query.

381. Re: Proposal: Constant Tables (score: 29)
Author: Gregory Bonik <gregory@...>
Date: Sat, 13 Aug 2011 16:34:18 +0400
? ??., 13/08/2011 ? 00:52 +0200, Lars Doelle ?????: A function like Table.todata in not too hard to implement since you can use lua_topointer for tables, userdata, functions and threads. Here is a sk
382. Re: A proposal for safe bytecode in Lua 5.2 (score: 29)
Author: Peter Cawley <lua@...>
Date: Sun, 17 Apr 2011 11:43:49 +0100
Indeed you could; my phrasing should have been "compulsory if you want verification". It certainly could, but LoadInt is also frequently called during the undumping process and the result passed on t
383. Re: I'd give my right arm for a continue statement (score: 29)
Author: Steve Litt <slitt@...>
Date: Thu, 27 Jan 2011 15:33:28 -0500
Thanks Roberto, From my perspective, the preceding has little advantage over putting the stuff from break :process_item to end in an if statement -- both involve an extra level of nesting. My right a
384. Re: I'd give my right arm for a continue statement (score: 29)
Author: Axel Kittenberger <axkibe@...>
Date: Sat, 22 Jan 2011 19:57:38 +0100
The sarcastic story as far I read it, the lua gods are waiting for a scintillation how to solve it in a general way. So far this has not yet happened. Maybe the holy ghost does its job one day, and w
385. Re: [Q] invoking Lua from within PHP (score: 29)
Author: Bertrand Mansion <lua@...>
Date: Fri, 19 Jun 2009 11:39:26 +0200
Also I have written a small PHP serializer for Lua, but it is my first Lua extension in C, so I am not sure the code is perfect, I would appreciate if others could have a look and tell me if there is
386. Experimental finalize/guard patch (score: 29)
Author: "alex.mania@..." <alex.mania@...>
Date: Thu, 07 Feb 2008 21:25:58 +0900
Ok, as far as I can tell the first email got lost in transit. Either that or emails with attachments take longer than 7(!) hours to go through. So at the risk of a double post, here it is again: Hey
387. Re: 2nd version: try..catch for Lua, now "finally" supported (score: 29)
Author: Miles Bader <miles@...>
Date: Thu, 31 Jan 2008 04:04:09 +0900
It sounded to me like he meant that if a return or break occurs in the _finally_ block, and an error causes the finally-block to be executed, then that return/break will cause the error not to be ret
388. Re: try..catch in Lua (score: 29)
Author: "Hu Qiwei" <huqiwei@...>
Date: Tue, 29 Jan 2008 13:34:14 +0800
Hi Everyone, The attachment is my try-catch patch for lua 5.1.3. some side-effect: 1) Can't use C++ try-catch here, only setjmp..longjmp works. so I changed luaconf.h 2) in ldo.c , lua_longjmp struct
389. Re: Dump all strings/symbols? (score: 29)
Author: "Research" <research@...>
Date: Sun, 25 Jun 2006 15:21:47 +0800
After messing about with this for a while, I found the following adapted from the manual. If I call this function after nil'ing and gc'ing and they're gone, is there anywhere else in Lua I need to ch
390. Re: YAPLXMLP (score: 29)
Author: Asko Kauppi <askok@...>
Date: Sat, 11 Feb 2006 22:41:33 +0200
Why do you (want to) have the .attr section there? I was looking at the existing (prior to this) parsers some time ago, and wrote Yet Another One (fun, ain't it) myself. That has: - preserves any and
391. Re: What IS the syntax of Lua 4.1 programs? (score: 29)
Author: ramsdell@... (John D. Ramsdell)
Date: 08 Aug 2001 08:20:33 -0400
The table grammar in lua.stx was very helpful, but slightly wrong. It forced all list style field specifications to precede all assignment style field specifications. The fix was easy, and the patch
392. Re: Bug in math.random() range checking (score: 28)
Author: Bruce Hill <bruce@...>
Date: Sat, 3 Mar 2018 01:33:21 -0800
Good catch and good suggestion. I believe this is correct version of what I originally proposed: luaL_argcheck(L, (lua_Unsigned)up - (lua_Unsigned)low <= (lua_Unsigned)L_RANDMAX, 1, "interval too la
393. pthreads (score: 28)
Author: Tom Callaway <tcallawa@...>
Date: Thu, 3 Aug 2017 11:48:06 -0400
Hi Lua folks, Recently, a bug came in for Fedora 26 saying that cgit was throwing error messages, specifically: /var/www/cgi-bin/cgit: Relink `/lib64/liblua-5.3.so' with `/lib64/libpthread.so.0' for
394. Re: 'table' as fallback for tables (score: 28)
Author: Tim Hill <drtimhill@...>
Date: Wed, 29 Jun 2016 20:02:45 -0700
On Jun 28, 2016, at 10:12 AM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote: I find this particular whirlpool to be substantially more relevant than many of the oft-rehashed debates on lua-l.
395. Re: Lua 5.2 (score: 28)
Author: Jim Pryor <lists+lua@...>
Date: Thu, 26 Nov 2009 11:16:32 -0500
There's a patch that's simpler than Coco or RVM that just enables yielding from iterator functions. It's described here: http://lua-users.org/wiki/YieldableForLoops also here: http://lua-users.org/wi
396. Re: Simple pickler (score: 28)
Author: Luis Carvalho <carvalho@...>
Date: Fri, 18 May 2007 22:20:01 -0400
Ok, it's not that big after all. :) The code is attached. As a simple test, run: require "pickler" a = {x = 1, y = 2; {3, 4, 5}} a[2] = a -- cycle a.z = a[1] -- shared subtable a.f = function(n) ret
397. Re: continuing continue - was Re: [patch] continue statement (score: 28)
Author: Rici Lake <lua@...>
Date: Sat, 24 Sep 2005 19:27:16 -0500
A nice and clean way of doing it, though (in C) is: void *a = NULL, *b = NULL, *c = NULL, *d = NULL; a = foo(); if(!a) goto error; b = foo(); if(!c) goto error; c = foo(); ... if(!e) goto error; do
398. Re: Re[2]: why no "continue" statement for loops? (score: 28)
Author: "Dylan Cuthbert" <dylan@...>
Date: Tue, 24 Jun 2003 17:31:10 +0900
To Tuomo Valkonen: Labeled break or continue would be great, and I'd prefer that to the break [n] syntax too. (although it does smell like a goto I suppose) To Enrico: Sometimes the application requi
399. RE: Re[2]: why no "continue" statement for loops? (score: 28)
Author: "Nick Trout" <nick@...>
Date: Mon, 23 Jun 2003 16:04:13 -0700
Adding continue would be nice. It is pretty useful and the patch looked very small. Just out of interest, what happens in the following example? function foo() local foo2 = function() while true do
400. SIGSEGV running the GC ? (score: 28)
Author: mnicolet <mnicolet@...>
Date: Fri, 20 Jun 2003 22:21:02 -0300
Hello list I am back to lua, reworking luapi to ´true´ 5.0 final, and testing extensively the suspicious points, which are what could derive from the two functions I added to lapi.c ... code follows

Search by Namazu v2.0.21