Search lua-l
This index contains 143,604 documents and
1,774,497 keywords. Last update on
2023-03-08 .
- 1. Tagged loops (was RE: [PATCH] experimental php-like 'break N' to break acrossmultipleloops) (score: 536)
- Author: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Wed, 1 Nov 2006 18:19:58 -0500
- Spaghetti code come from carelessly used unconditionnal jumps (that is the bad goto). I aggree that it can complicate code maintenance, but the (bad) relationship between coders and goto is biased by
- 2. RE: [PATCH] experimental php-like 'break N' to break across multipleloops (score: 509)
- Author: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Wed, 1 Nov 2006 11:45:28 -0500
- We would just have to tag loops and use that tag in break statements. Example: local prefix = "loop" local i=1 local n = 2 while[prefix..1] i<=10 do for[prefix..2] j=1,10 do if foo then break "loop1"
- 3. Re: [PATCH] experimental php-like 'break N' to break across multipleloops (score: 497)
- Author: Karel Tuma <ktuma@...>
- Date: Wed, 1 Nov 2006 21:04:49 +0100
- tagged/named loops have been discussed already: http://lua-users.org/lists/lua-l/2005-10/msg00037.html rici's solution, except being a bit intrusive to the language, works well (testing the patch aga
- 4. [PATCH] experimental php-like 'break N' to break across multiple loops (score: 489)
- Author: Karel Tuma <ktuma@...>
- Date: Tue, 31 Oct 2006 22:55:13 +0100
- hi listers, i've found myself doing lot of miserable things today, due to inability of lua to simply break out of multiple nested breakable scopes in one statement. finding nothing useful in powerpat
- 5. Re: [PATCH] experimental php-like 'break N' to break across multiple loops (score: 454)
- Author: Karel Tuma <ktuma@...>
- Date: Wed, 1 Nov 2006 18:20:54 +0100
- yep. what about goto? thats named scope too :) spaghetti construct will remain spaghetti construct, no matter the circumstances. (named labels, gotos, numbered breaks...). named scopes are easier to
- 6. RE: [PATCH] experimental php-like 'break N' to break across multiple loops (score: 445)
- Author: "Paul Hudson" <phudson@...>
- Date: Wed, 01 Nov 2006 14:44:33 +0100
- I'm not sure this is needed, but if other people disagree :) then I think the Perl-esque idea of breaking out to a labelled statement is the way to go. The problem with using numeric levels is that r
- 7. Red-Black Tree Patch (Re: Hash Table Collisions (n.runs-SA-2011.004)) (score: 434)
- Author: David Kolf <kolf@...>
- Date: Wed, 04 Jan 2012 12:22:27 +0100
- My patch to handle hash table collisions seems to run now. My red-black tree implementation is based on <http://www.eternallyconfuzzled.com/tuts/datastructures/jsw_tut_rbtree.aspx>. My version isn't
- 8. Re: Tagged loops (was RE: [PATCH] experimental php-like 'break N' to break acrossmultipleloops) (score: 432)
- Author: Rici Lake <lua@...>
- Date: Thu, 2 Nov 2006 13:41:21 -0500
- Breaking out of multiple nested loops is useful! Knuth - Structured Programming with Goto Statments: http://pplab.snu.ac.kr/courses/adv_pl05/papers/p261-knuth.pdf Nothing like a quick visit to the t
- 9. Re: [PATCH] experimental php-like 'break N' to break across multiple loops (score: 432)
- Author: Rici Lake <lua@...>
- Date: Tue, 31 Oct 2006 17:26:31 -0500
- hi listers, i've found myself doing lot of miserable things today, due to inability of lua to simply break out of multiple nested breakable scopes in one statement. One reasonably simple way of doin
- 10. Re: Tagged loops (was RE: [PATCH] experimental php-like 'break N' to break acrossmultipleloops) (score: 428)
- Author: Thomas Hafner <thomas@...>
- Date: 02 Nov 2006 11:15:33 +0100
- "Jerome Vuarand" <jerome.vuarand@ubisoft.com> wrote/schrieb <6EB652BF05BEE44FA2A29B23F3A7152806338F1E@UBIMAIL1.ubisoft.org>: In functional style you can have the same effect by programming in CPS (co
- 11. Re: Tagged loops (was RE: [PATCH] experimental php-like 'break N' to break acrossmultipleloops) (score: 428)
- Author: Sam Roberts <sroberts@...>
- Date: Thu, 2 Nov 2006 08:32:13 -0800
- Unnecessarily complex and hard to understand flow control can be created with conditionals as well as with goto. "Please don't fall into the trap of believing that I am terribly dogmatical about [the
- 12. `break [N]' and `continue [N]' in Lua (score: 422)
- Author: lb@...
- Date: Sat, 21 Jun 2003 21:53:59 +0200
- Hi, The attached file contains modified Lua 5 parser and lexer files with added `continue' keyword. In addition, both `break' and `continue' statements may have optional integer argument specifying w
- 13. Re: continue continued, with break N (score: 403)
- Author: Axel Kittenberger <axkibe@...>
- Date: Fri, 19 Nov 2010 10:00:03 +0100
- 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 keyword - better just get over with it, than to overload existing keywords
- 14. Re: continue continued, with break N (score: 395)
- Author: Axel Kittenberger <axkibe@...>
- Date: Fri, 19 Nov 2010 08:20:17 +0100
- wait, +0 is something different than -0? No please not. BTW: with a continue and multilevel break, i consider "redo" not a an essential feature of same importance, since with these 2 constructs, redo
- 15. RE: Tagged loops (was RE: [PATCH] experimental php-like 'break N' tobreak acrossmultipleloops) (score: 390)
- Author: "Grellier, Thierry" <t-grellier@...>
- Date: Thu, 2 Nov 2006 11:14:03 +0100
- Wouldn't be an exception mechanism another possibility to deal with that ? Spaghetti code come from carelessly used unconditionnal jumps (that is the bad goto). I aggree that it can complicate code m
- 16. continue continued, with break N (score: 376)
- Author: David Manura <dm.lua@...>
- Date: Thu, 18 Nov 2010 23:25:58 -0500
- [1] We may think of break, continue, redo, and break with labels all as a generalization of "break N", slightly generalizing PHP's and especially Idle's "break N" [2,3]: -- begin scope 3 for x=1,10 d
- 17. Re: continue continued, with break N (score: 331)
- Author: Tom N Harris <telliamed@...>
- Date: Sat, 20 Nov 2010 16:19:16 -0500
- However, I don't see a simple way to artificially advance a stateless iterator like returned by ipairs--see code in "A for statement like .... is equivalent to the code" in the manual--but you can wr
- 18. [IUP-users, lua-l] IM, CD and IUP build warnings, updated (score: 328)
- Author: sur-behoffski <sur_behoffski@...>
- Date: Mon, 20 May 2019 21:00:46 +0930
- G'day, [CC:ing this to the lua-l list; I hope that this message is not too off-topic. I won't cross-post again, unless I get strong vibes that the lua-l community appreciates knowing about this stuff
- 19. Re: continue continued, with break N (score: 326)
- Author: Nilson <nilson.brazil@...>
- Date: Sat, 20 Nov 2010 08:54:10 -0200
- What about "tagged blocks" as an alternative to goto. (similar to Ada exit)? You can use with any command that creates a block - if, while, repeat, for, do or even a function. and with the end to inf
- 20. Yieldable LPEG Parser (score: 324)
- Author: William Ahern <william@...>
- Date: Tue, 31 Jan 2012 22:01:23 -0800
- Below is a _preliminary_ patch to make lpeg yieldable. It Works For Me(tm), but I haven't hammered it yet. Instead of passing a string to lpeg.match, you can pass an object (userdata or table). The o
Search by
Namazu v2.0.21