[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: what's wrong with this loop syntax?
- From: "Michael Newberry" <mnewberry@...>
- Date: Mon, 8 Jan 2007 14:23:59 -0700
Luiz, OK, thanks. Is there any way to make it more compact (and more
readable to me, at least), where the loop is tested at the top of the loop?
Here is what I use:
while true do
str = S:Next()
if str == nil then break end
----- Original Message -----
From: "Luiz Henrique de Figueiredo" <firstname.lastname@example.org>
To: "Lua list" <email@example.com>
Sent: Monday, January 08, 2007 2:15 PM
Subject: Re: what's wrong with this loop syntax?
So do you have any idea why I cannot use the more compact syntax that I
An assignment in Lua is not an expression, it's a statement.
See http://www.lua.org/manual/5.1/manual.html#2.4.3 and
If assignment were an expression, what would be an interpretation for