[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: what's wrong with this loop syntax?
- From: "Ashwin Hirschi" <deery@...>
- Date: Mon, 08 Jan 2007 22:21:50 +0100
> Pardon me for asking a simple question, but why can't I use this syntax?
>
> while (str = S:Next()) ~= nil do
I think the short answer is:
Statements are not expressions.
For a (slightly) longer answer check Lua's syntax:
http://www.lua.org/manual/5.1/manual.html#8
Since it's so brief, it's quite easy to read.
I hope that clears things up.
Ashwin.
--
no signature is a signature.