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.

321. Re: [ANN] LuaJIT-2.0.0-beta1 (score: 38)
Author: David Given <dg@...>
Date: Sun, 01 Nov 2009 18:57:12 +0000
Yes, well, that's what you get when you try to translate code written for a language that supports arbitrary bb graphs to a language that does *not* support arbitrary bb graphs... I remember that way
322. Re: [ANN] llvm-lua 0.2 (score: 38)
Author: Mike Pall <mikelu-0808@...>
Date: Sun, 31 Aug 2008 23:58:23 +0200
Thank you -- works fine under Linux. I'd like to add this to the next Coco release. But it'll break on Mac OS X in 64 bit mode, since the assembler syntax is different. I hope this works (but I can't
323. Code for a simple IRC server (score: 38)
Author: Joshua Jensen <jjensen@...>
Date: Tue, 12 Feb 2008 13:16:58 -0700
As I was digging through old Lua script I wrote some time ago, I came across a simple IRC server I wrote based on the Tcl IRCd (http://www.hping.org/tclircd/) by Salvatore Sanfilippo. The code was wr
324. 2nd version: try..catch for Lua, now "finally" supported (score: 38)
Author: "Hu Qiwei" <huqiwei@...>
Date: Thu, 31 Jan 2008 01:57:30 +0800
As suggested by Mark Hamburg, I've updated my try..catch patch, now "finally" clause is supported, with some bug-fix. Syntax: try ... (block) ... end Simply ignore errors raised in block, and try ...
325. Re: Just a small request (score: 38)
Author: Hugo Etchegoyen <hetchegoyen@...>
Date: Thu, 25 Jan 2007 16:28:40 -0300
Hi Andrew, Thank you very much for the references. I see that this issue has already been discussed before and some people even patched Lua to get continue and even break N and continue N (I didn't w
326. Re: XML (score: 38)
Author: Roberto Ierusalimschy <roberto@...>
Date: Wed, 11 Apr 2001 10:43:02 -0300
I have this basic skeleton that parses the "main" part of an XML string (it does not handle meta-data like "<?" and "<!"...). -- Roberto function parseargs (s) local arg = {} gsub(s, "(%w+)=([\"'])(
327. Re: How to traverse a Lua table in C? (score: 38)
Author: David Jeske <jeske@...>
Date: Wed, 2 Dec 1998 13:44:14 -0800
You should look at the Lua/Tk binding for ideas.. The method above is much simpler than what you have to do if you want to walk the table entirely from C-code. I have some loops in my software which
328. Re: Floats and %d (score: 37)
Author: Philipp Janda <siffiejoe@...>
Date: Wed, 22 Jul 2015 09:08:12 +0200
Am 22.07.2015 um 08:33 schröbte Dirk Laurie: 2015-07-22 0:32 GMT+02:00 Rena <hyperhacker@gmail.com>: On Tue, Jul 21, 2015 at 8:28 AM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote: The OP's pr
329. Re: Floats and %d (score: 37)
Author: Dirk Laurie <dirk.laurie@...>
Date: Wed, 22 Jul 2015 08:33:24 +0200
2015-07-22 0:32 GMT+02:00 Rena <hyperhacker@gmail.com>: Excellent! We have now demonstrated that a very easy change allows anybody to build a custom string.format that will silently throw away the fr
330. Re: Floats and %d (score: 37)
Author: Rena <hyperhacker@...>
Date: Tue, 21 Jul 2015 18:32:18 -0400
That can still be addressed: case 'd': lua_Integer n; if(lua_isinteger(L, arg)) n = lua_tointeger(L, arg); else n = (lua_Integer)luaL_checknumber(L, arg); addlenmod(form, LUA_INTEGER_FRMLEN); nb = sp
331. Re: upcoming changes in Lua 5.2 (score: 37)
Author: Bertrand Mansion <golgote@...>
Date: Tue, 26 Feb 2008 16:11:51 +0100
Le 26 févr. 08 à 15:51, Alex Davies a écrit : -- Original Message -- From: "Alexander Gladysh" Though, adding a continue would bring discussions about adding continue N and break N (for exiting/conti
332. Trailing commas in argument & parameter lists patch (score: 36)
Author: Lars Müller <appgurulars@...>
Date: Tue, 28 Feb 2023 21:39:49 +0100
Rationale Usage Patch Consistency with table constructors. Especially when implementing DSLs it is inconsistent that you can do f{ 1, 2, } but not f( 1, 2, ) For documentation purposes, I like to spl
333. Re: Breaking out of a function loop when querying a database that returns multiple rows of data (score: 36)
Author: Jonathan Hunter <jhunter@...>
Date: Mon, 21 Sep 2015 23:17:59 +0100
You can use the "break" keyword to exit the innermost loop immediately, or the "return" keyword to immediately exit the current function, including all loops within that function (and possibly send
334. Re: A few Wild and Wooly Proposals, while we're here (was Re: Feature request: userdata slice) (score: 36)
Author: William Ahern <william@...>
Date: Fri, 21 Aug 2015 11:23:33 -0700
An LPeg grammar to parse Lua source code is so small that there's really no excuse for not coming to the table having already tested out the idea. Your proposal might cause all sorts of headaches wit
335. Re: table.maxn... (score: 36)
Author: Coda Highland <chighland@...>
Date: Mon, 1 Jun 2015 06:26:33 -0700
Okay, I thought that it had said "the set of all positive integer keys" there. In that case, drop the floor() check. I'm minimizing the risk of overflow. As I commented, my current scheme requires a
336. Re: Self-deleting weak tables? (score: 36)
Author: Jim Pryor <lists+lua@...>
Date: Sun, 1 Nov 2009 00:48:50 -0400
Nice idea. The arguments aren't restricted to numbers, but I could use this technique to encode whatever the arguments are: switch lua_type(L, i) { case LUA_TNUMBER: // write LUA_TNUMBER, then the nu
337. Re: Why does LoadString return NULL for zero-length strings? (score: 36)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Tue, 2 Sep 2008 08:17:43 -0300
The attached patch fixes this glitch: stdin:1: 1: bad string in precompiled chunk Thanks for spotting it. --lhf -- lundump.c,orig 2008-04-04 16:51:41.000000000 -0300 +++ lundump.c 2008-09-02 08:10:19
338. defer patch (score: 35)
Author: pocomane <pocomane_7a@...>
Date: Sat, 12 Oct 2019 15:55:59 +0200
I added a new annotation to the my previous patch to the "do" block: <defer>. A block like: ``` do <defer> -- ... end ``` is equivalent to: ``` local _ <close> = defer(function() -- ... end) ``` exce
339. Re: Thought experiment: what would you remove from Lua (score: 35)
Author: Francisco Olarte <folarte@...>
Date: Sun, 9 Sep 2018 11:46:56 +0200
Hi: .... Well, if I read correctly (5.3 ref manual, 3.4.11 function definitions ) all "top level" function keyword usages are syntactic sugar with a translation defined there, so it's easy to be sure
340. Re: Lua life after integers (score: 35)
Author: "iggyvolz ." <iggyvolz@...>
Date: Mon, 8 Dec 2014 16:37:05 -0500
If I'm understanding the manual correctly, lua_tolstring() doesn't honour __tostring. Similarly lua_tonumberx() doesn't call __tonumber (if such a metamethod even exists?). The manual also doesn't a

Search by Namazu v2.0.21