lua-users home
lua-l archive

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


>    Is there some reason for a Lua block not to return a value (the last
>expression)?

Because it complicates the language. Moreover, an expression is not a statement.
I think we'd need to mark it as a kind of return, something like

	a = do 
		....
		= 7
	end

but I don't think it's worth the trouble.
--lhf