lua-users home
lua-l archive

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


> 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.