lua-users home
lua-l archive

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


On Tue, 23 Oct 2012 11:00 +0100 (BST), David Collier <myshkin@cix.co.uk> wrote:
> Essentially I have come to like the ability of a C assignment to be used
> as a value - and if Lua could handle it, including multiple-value
> assignments - which are a great feature of Lua, some of my code would
> look a lot neater :-)

Unfortunately, assignments in Lua are not expressions.
This is a choice of Lua's authors.
Probably, this choice has been made for the sake of better error detection
at the expense of language flexibility. :-(