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.

21. X.509 PKIX certificate parser using lpeg.Cmt (was Re: Elegant design for creating error messages in LPEG parser) (score: 312)
Author: William Ahern <william@...>
Date: Thu, 18 Apr 2019 02:29:05 -0700
I meant to reply when you first posed the question but couldn't get around to it. The following is a basic PKIX X.509 certificate parser. I've refactored my working code into a single file. It's a wo
22. Re: continue continued, with break N (score: 306)
Author: David Manura <dm.lua@...>
Date: Fri, 19 Nov 2010 22:46:05 -0500
Another numbering scheme may be better, but I think now that numbered scopes are less readable/decipherable than named scopes. Interestingly, Lua already has named scopes: they are called lexical var
23. Re: continue continued, with break N (score: 287)
Author: David Manura <dm.lua@...>
Date: Fri, 19 Nov 2010 23:04:16 -0500
err.. that should read more like function f() for x=1,3 do local cont print(x) return function() break cont end end end f()()()()() -- > 1 2 3 (i.e. some type of coroutine)
24. Re: continue continued, with break N (score: 285)
Author: HyperHacker <hyperhacker@...>
Date: Fri, 19 Nov 2010 13:32:41 -0700
Agreed. As neat as numbered break/continue are, I'd be satisfied with just C-style continue. -- Sent from my toaster.
25. Re: continue continued, with break N (score: 280)
Author: Joshua Jensen <josh.jjensen@...>
Date: Fri, 19 Nov 2010 07:30:34 -0700
-- Original Message -- From: Axel Kittenberger Date: 11/19/2010 2:00 AM I've another idea how to capture full loop functionality, in a way I've not yet seen in another language. 1) continue as new ke
26. lposix portability (score: 279)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Fri, 7 Apr 2006 23:32:42 -0300
A new version of my POSIX library is almost ready. I still have to write a reasonable test and perhaps some documentation, and so I'm not ready yet to release a tarball. However, since there are a fe
27. Re: continue continued, with break N (score: 277)
Author: Petite Abeille <petite.abeille@...>
Date: Fri, 19 Nov 2010 23:35:15 +0100
Classical Kübler-Ross cycle. You will get over it :))
28. Re: continue continued, with break N (score: 273)
Author: David Manura <dm.lua@...>
Date: Sat, 20 Nov 2010 11:08:10 -0500
Are you thinking of the comment "The behavior of next is undefined if, during the traversal, you assign any value to a non-existent field in the table" concerning next/pairs? That doesn't apply to th
29. Re: continue continued, with break N (score: 273)
Author: Axel Kittenberger <axkibe@...>
Date: Sat, 20 Nov 2010 13:40:35 +0100
Really may I? I read from the manual that I may not. - how do you imagine to skip a pair? for k, v in ipairs(x) do if v="-skip" then k,v = ipairs(x, k,v ) continue -- eh else everything else i want
30. Re: continue continued, with break N (score: 273)
Author: Nilson <nilson.brazil@...>
Date: Sat, 20 Nov 2010 09:06:34 -0200
Or perhaps instead of "tagged block" a "named block" that could be used with functions too. function :name SyntacticalSugarName () end :name We could introduce real named functions in a orthogonal wa
31. Re: continue continued, with break N (score: 273)
Author: Florian Weimer <fw@...>
Date: Sat, 20 Nov 2010 09:58:00 +0100
* David Manura: If you think you really need this flexibility, a simple goto statement would be a better addition to the language, IMHO.
32. Re: continue continued, with break N (score: 273)
Author: David Manura <dm.lua@...>
Date: Fri, 19 Nov 2010 22:54:56 -0500
Or just mutate the iterator inside the loop: for a in it do if a == '-f' then name = it() .....
33. Re: proposal: state machine syntax also usable for continue / nested break (score: 260)
Author: David Manura <dm.lua@...>
Date: Fri, 28 Jan 2011 22:30:09 -0500
That example was merely to illustrate the expressive power of the construct in emulating other control structures. You may want this expressiveness for code generation purposes, and it may also be ni
34. [PROPOSAL 5.4] alternate way of format/pack/unpack (in the string library) (score: 241)
Author: François Perrad <francois.perrad@...>
Date: Fri, 26 May 2017 17:32:49 +0200
With Lua 5.3, the `string` library embeds 3 minilanguages:   - a text formatting minilanguage in `format` function   - a regexp minilanguage in `find`, `gmatch`, `gsub` and `match` functions   - a bi
35. Re: Lua-based applications get to Mactel faster (score: 241)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Tue, 21 Feb 2006 16:05:45 -0300
They're probably using a modified bytecode loader that does byte swap. Here is a patch and a complete lundump.c that does that. --lhf -- lundump.c,orig 2006-02-16 13:53:49.000000000 -0200 +++ lundum
36. Re: proposal: state machine syntax also usable for continue / nested break (score: 239)
Author: Tom N Harris <telliamed@...>
Date: Fri, 28 Jan 2011 18:51:55 -0500
In Lua, we favor generic and powerful constructs. Actually, a 'goto' would be almost perfect. But its interaction with variable scoping is quite confusing in a language with first-class functions lik
37. linting of lua-5.3.0 (score: 238)
Author: François Perrad <francois.perrad@...>
Date: Fri, 27 Mar 2015 16:56:42 +0100
The previous attempt to use this tool (www.gimpel.com) was done by David Manura (see http://lua-users.org/lists/lua-l/2011-09/msg00805.html) This kind of tool (http://en.wikipedia.org/wiki/Static_pro
38. Re: 5.2.0 (work 2) and luac (score: 233)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Fri, 7 May 2010 16:38:47 -0300
Not much I guess but 5.2 is still a moving target in some aspects and so not much effort has been spent in luac. Attached is a patched (but still work-quality) version of print.c that works better t
39. Re: Why is break not syntactically required to be the last statement in a block (anymore)? (score: 227)
Author: Lorenzo Donati <lorenzodonatibz@...>
Date: Thu, 28 Jul 2022 20:59:34 +0200
To avoid issues with what you mention, in order to just specify a "static" level, also something like this: break<4> break ::4:: or break @4 or whatever other syntax that is easily parseable with no
40. Re: Feature request: enhanced break (score: 226)
Author: Josh Simmons <simmons.44@...>
Date: Mon, 24 Nov 2014 17:42:47 +1100
This has been discussed quite often before. http://lua-users.org/cgi-bin/namazu.cgi?query=break+n&sort=score&idxname=lua-l&max=20 We also now have goto that gives this functionality. Cheers, Josh.

Search by Namazu v2.0.21