lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 1/25/07, Hugo Etchegoyen <hetchegoyen@hasar.com> wrote:

 Thank you, Leo. The trick is witty. But I'd like to have both... Am I too
demanding?

 Cheers,
 Hugo

Hugo,
of course, a proper "continue" statement is long overdue in Lua. On
this list this is a constantly recurring topic (I hope Roberto reads
this:-)
--Leo--


 Leo Razoumov escribió:
On 1/24/07, Hugo Etchegoyen <hetchegoyen@hasar.com> wrote:

 [..snip..]
  But being a seasoned C/C++ programmer, there is only one thing I miss a
 lot: a continue statement! Please, please, I know that people asking for
new
 features to be added to a language usually annoy its designers, and
 generally for good reason. But I honestly think this would be a great
 addition which would cost practically nothing and would benefit the
language
 and make it more coherent.
  [..snip..]

 Hugo,
 you can fake continue with a "break" inside until...repeat construct, see
 http://lua-users.org/lists/lua-l/2006-12/msg00440.html

 The price to pay is that your "break" effectively becomes "continue"
 in this scope.

 Hope it helps,
 --Leo--